Exemplo n.º 1
0
 public QueueProcessor(
     IQueueMessageMapperRegistry mapperRegistry,
     IQueueMessageMapperFactory mapperFactory,
     IQueueClientFactory clientFactory)
 {
     _mapperRegistry = mapperRegistry;
     _mapperFactory  = mapperFactory;
     _clientFactory  = clientFactory;
 }
Exemplo n.º 2
0
 public RmqDispatcher(
     IServiceProvider serviceProvider,
     RmqConnectionDetails connectionDetails,
     RmqChannelFactory channelFactory,
     IQueueMessageMapperRegistry registry,
     IQueueMessageMapperFactory factory)
 {
     _serviceProvider   = serviceProvider;
     _commands          = new Dictionary <string, Type>();
     _channelFactory    = channelFactory;
     _connectionDetails = connectionDetails;
     _registry          = registry;
     _factory           = factory;
     _commandChannels   = new Dictionary <string, IModel>();
 }