Exemple #1
0
 public DefaultMessageConverter(
     IMessageHandlerFactoryStore messageHandlerFactoryStore,
     IMessageDescriptorResolver messageTopicResolver,
     ILogger <DefaultMessageConverter> logger = null)
 {
     _messageHandlerFactoryStore = messageHandlerFactoryStore;
     _messageTopicResolver       = messageTopicResolver;
     _logger = (ILogger)logger ?? NullLogger.Instance;
 }
Exemple #2
0
 public MessageSubscriber(IMessageBus messageBus,
                          IRabbitMQWrapper rabbitMQWrapper,
                          IMessageDescriptorResolver messageTopicResolver,
                          ILogger <MessageSubscriber> logger)
 {
     _messageBus           = messageBus;
     _rabbitMQWrapper      = rabbitMQWrapper;
     _messageTopicResolver = messageTopicResolver;
     Logger = (ILogger)logger ?? NullLogger.Instance;
 }
Exemple #3
0
 public MessagePublisher(
     IMessageDescriptorResolver messageTopicResolver,
     ICoreSessionProvider coreSessionProvider,
     IMessagePublisherWrapper messagePublisherWrapper,
     IPublishedMessageStore messageStore,
     ILogger <MessagePublisher> logger = null)
 {
     _messageTopicResolver    = messageTopicResolver;
     _coreSessionProvider     = coreSessionProvider;
     _messagePublisherWrapper = messagePublisherWrapper;
     _messageStore            = messageStore;
     _logger = (ILogger)logger ?? NullLogger.Instance;
 }