public IInjectableContextAsync PostPostProcessAsync(IProcessorAsync postPostProcessAsync)
		{
			if (!_postPostProcessorAsyncs.ContainsKey(this.GetType()))
				_postPostProcessorAsyncs.Add(this.GetType(), new List<IProcessorAsync>());
			_postPostProcessorAsyncs[this.GetType()].Add(postPostProcessAsync);
			return this as IInjectableContextAsync;
		}
Пример #2
0
        private bool ConfiguredWithQueueName(IProcessorAsync messageProcessor, string queueId, ICollection <IProcessorAsync> unregistered)
        {
            if (_registrations.TryGetValue(messageProcessor.GetType(), out var processorQueue))
            {
                return(processorQueue == queueId);
            }

            unregistered.Add(messageProcessor);
            return(false);
        }