Пример #1
0
        public void Handle(SendNotificationToAdministrator message)
        {
            var command = new EmailMailCommand()
            {
                To      = "*****@*****.**",
                From    = State.From,
                Message = State.Message
            };

            //_mediator.Send(command);
            State.AdminEmailSent = true;
            CheckSagaComplete();
        }
Пример #2
0
        public void Handle(SendGreetingEmail message)
        {
            var command = new EmailMailCommand()
            {
                To      = State.From,
                From    = "*****@*****.**",
                Message = $"Thank you for your contact. We will be in touch. Id of your request is {State.MessageId}"
            };

            throw new InvalidOperationException("Test");

            //_mediator.Send(command);
            State.GreetingEmailSent = true;
            CheckSagaComplete();
        }