public PubSubListenerHostedService(IServiceProvider provider, IMessageHandlerTypes messageHandlers, IEnumerable <SubscriberParameters> subscribers, ILogger <PubSubListenerHostedService> logger) { _messageHandlers = messageHandlers; _logger = logger; _provider = provider; _subscribers = subscribers; _kubemqLogger = _provider.GetService <ILogger <Subscriber> >(); }
public QueueListenerHostedService(IContainerResolve provider, IMessageHandlerTypes messageHandlers, IUniqueness unique, IQueueStreamManager queueStreamManager, ILogger <QueueListenerHostedService> logger) { _provider = provider; _messageHandlers = messageHandlers; _queueParameters = unique.GetQueues(); _logger = logger; _queueStreamManager = queueStreamManager; }
public EventProcessorListener(CancellationToken stoppingToken, IServiceProvider provider, IMessageHandlerTypes messageHandlers, SubscriberParameters subscriberParameters) { _stoppingToken = stoppingToken; _subscriberParameters = subscriberParameters; _provider = provider; _messageHandlers = messageHandlers; _logger = provider.GetService <ILogger <EventProcessorListener> >(); _hasThreadFinishToProcess = new AutoResetEvent(false); }
public QueueProcessorListener(CancellationToken stoppingToken, QueueParameters queueParameters, IQueueStreamManager queueStreamManager, IMessageHandlerTypes messageHandlers, IContainerResolve provider) { _stoppingToken = stoppingToken; _queueParameters = queueParameters; _queueStreamManager = queueStreamManager; _logger = provider.Resolve <ILogger <QueueProcessorListener> >(); _messageHandlers = messageHandlers; _provider = provider; _hasThreadFinishToProcess = new AutoResetEvent(false); }