Esempio n. 1
0
 public TransactionProcessorIntegrationEventQueue(IQueueChannelManager responseQueueChannelManager,
                                                  IQueueSettingsResolver queueSettingsResolver,
                                                  IQueueFactory responseQueueFactory,
                                                  ILoggerFactory loggerFactory)
 {
     _logger = loggerFactory.GetLogger <IntegrationEventQueue>();
     _responseQueueChannelManager = responseQueueChannelManager;
     _settings = queueSettingsResolver.GetSettings(nameof(IntegrationEventQueue));
     responseQueueFactory.CreateExchange(_settings);
 }
 public IntegrationEventQueue(IQueueChannelManager responseQueueChannelManager,
                              IQueueSettingsResolver queueSettingsResolver,
                              IQueueFactory responseQueueFactory,
                              ILoggerFactory loggerFactory)
 {
     _logger = loggerFactory.GetLogger <IntegrationEventQueue>();
     _responseQueueChannelManager = responseQueueChannelManager;
     _settings = queueSettingsResolver.GetSettings(nameof(IntegrationEventQueue));
     responseQueueFactory.SetupQueue(_settings);
 }
Esempio n. 3
0
 public QueueListener(ILoggerFactory loggerFactory,
                      IQueueChannelManager queueChannelManager,
                      IQueueSettingsResolver queueSettingsResolver,
                      IQueueFactory queueFactory,
                      IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _logger          = loggerFactory.GetLogger <QueueListener>();
     _settings        = queueSettingsResolver.GetSettings(nameof(QueueListener));
     _channel         = queueChannelManager.GetChannel();
     _consumer        = new EventingBasicConsumer(_channel);
     queueFactory.SetupQueue(_settings);
 }
Esempio n. 4
0
 public QueueFactory(IQueueChannelManager queueChannelManager,
                     ILoggerFactory loggerFactory)
 {
     _logger = loggerFactory.GetLogger <QueueFactory>();
     _queueChannelManager = queueChannelManager;
 }