Beispiel #1
0
            public Task OnCommandExecutedAsync(CommandResult commandResult)
            {
                _messageContext.OnMessageHandled(_queueMessage);

                if (string.IsNullOrEmpty(_commandMessage.ReplyAddress))
                {
                    return(Task.CompletedTask);
                }

                return(_sendReplyService.SendReply((int)CommandReturnType.CommandExecuted, commandResult, _commandMessage.ReplyAddress));
            }
Beispiel #2
0
            public void OnCommandExecuted(CommandResult commandResult)
            {
                _messageContext.OnMessageHandled(_queueMessage);

                if (string.IsNullOrEmpty(_commandMessage.ReplyAddress))
                {
                    return;
                }

                _sendReplyService.SendReply((int)CommandReplyType.CommandExecuted, commandResult, _commandMessage.ReplyAddress);
            }
Beispiel #3
0
            public void OnCommandExecuted(CommandResult commandResult)
            {
                _messageContext.OnMessageHandled(_queueMessage);

                if (string.IsNullOrEmpty(_commandMessage.ReplyAddress))
                {
                    return;
                }

                var message = new CommandExecutedMessage
                {
                    CommandId         = commandResult.CommandId,
                    AggregateRootId   = commandResult.AggregateRootId,
                    CommandStatus     = commandResult.Status,
                    ExceptionTypeName = commandResult.ExceptionTypeName,
                    ErrorMessage      = commandResult.ErrorMessage,
                };

                _sendReplyService.SendReply((int)CommandReplyType.CommandExecuted, message, _commandMessage.ReplyAddress);
            }