Ejemplo n.º 1
0
        public void Publish(DomainEventStreamMessage eventStream)
        {
            var message = CreateEQueueMessage(eventStream);

            _sendMessageService.SendMessage(_producer, message, eventStream.AggregateRootId);
        }
Ejemplo n.º 2
0
 public void Send(ICommand command)
 {
     _sendMessageService.SendMessage(_producer, BuildCommandMessage(command, false), _commandRouteKeyProvider.GetRoutingKey(command), command.Id, null);
 }
Ejemplo n.º 3
0
        public void Publish(IPublishableException exception)
        {
            var message = CreateEQueueMessage(exception);

            _sendMessageService.SendMessage(_producer, message, exception.Id);
        }