Esempio n. 1
0
        public void Consume(UserVerificationEmailSent message)
        {
            // once the verification e-mail has been sent, we allow 24 hours to pass before we
            // remove this transaction from the registration queue

            if (_email != message.Email)
            {
                throw new ArgumentException("The email address was not properly loaded.");
            }

            Bus.Publish(new UserRegistrationPending(CorrelationId));
            Bus.Publish(new ScheduleTimeout(CorrelationId, 24.Hours().FromNow()));
        }
Esempio n. 2
0
        public void Consume(UserVerificationEmailSent message)
        {
            _user.SetEmailPending();

            Bus.Publish(new ScheduleTimeout(CorrelationId, 24.Hours().FromNow()));
        }