public GenericWorkerInstrumentationWriter(IUnityContainer container)
        {
            _mqQueueController = container.Resolve<IMQQueueController>();
            _jsonRpcHelper = container.Resolve<IJSonRPCHelper>();
            _queueSettingsResolver = container.Resolve<IQueueSettingsResolver>();

            _intrumentationQueueSettings = _queueSettingsResolver.ResolveByMethodName(InstrumentationServiceMethod);
        }
 public IntegrationEventQueue(IQueueChannelManager responseQueueChannelManager,
                              IQueueSettingsResolver queueSettingsResolver,
                              IQueueFactory responseQueueFactory,
                              ILoggerFactory loggerFactory)
 {
     _logger = loggerFactory.GetLogger <IntegrationEventQueue>();
     _responseQueueChannelManager = responseQueueChannelManager;
     _settings = queueSettingsResolver.GetSettings(nameof(IntegrationEventQueue));
     responseQueueFactory.SetupQueue(_settings);
 }
Exemple #3
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 GenericWorkerInstrumentationWriter(IMQQueueController mqQueueController,
                                                  IJSonRPCHelper jsonRpcHelper,
                                                  IQueueSettingsResolver queueSettingsResolver)
        {
            _mqQueueController = mqQueueController;
            _jsonRpcHelper = jsonRpcHelper;
            _queueSettingsResolver = queueSettingsResolver;

            _intrumentationQueueSettings = _queueSettingsResolver.ResolveByMethodName(InstrumentationServiceMethod);
        }
Exemple #5
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);
 }
 public ContextMQTracer(IMQQueueController mqQueueController, IQueueSettingsResolver queueSettingsResolver)
 {
     _mqQueueController    = mqQueueController;
     _loggingQueueSettings = queueSettingsResolver.ResolveByMethodName(LoggingServiceMethod);
     _fallbackLogger       = new FallBackLogger();
 }