public Task <IListener> CreateListenerAsync(ListenerFactoryContext context) { if (context == null) { throw new ArgumentNullException("context"); } var factory = new QueueListenerFactory(_queue, _queueConfiguration, _exceptionHandler, _messageEnqueuedWatcherSetter, _sharedContextProvider, _loggerFactory, context.Executor); return(factory.CreateAsync(context.CancellationToken)); }
public Task <IListener> CreateListenerAsync(ListenerFactoryContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var factory = new QueueListenerFactory(_queueServiceClient, _queue, _queueOptions, _exceptionHandler, _messageEnqueuedWatcherSetter, _loggerFactory, context.Executor, _queueProcessorFactory, context.Descriptor); return(factory.CreateAsync(context.CancellationToken)); }