コード例 #1
0
 private MessageSubscriber(
     IReadOnlyCollection <IMessageConsumer> messageConsumers,
     IReadOnlyCollection <IMessageProcessor> messageProcessors,
     IRejectManager rejectManager,
     IRetryManager retryManager)
 {
     _messageConsumers  = messageConsumers;
     _messageProcessors = messageProcessors;
     _rejectManager     = rejectManager;
     _retryManager      = retryManager;
 }
コード例 #2
0
        public MessageProcessor(
            TimeSpan defaultRetryTimeout,
            ICompositeFormatterResolver formatterResolver,
            IInternalMessageQueue internalQueue,
            ILogFactory logFactory,
            Func <string, IMessagePublisher> repliesPublisher,
            IRejectManager rejectManager,
            IRetryManager retryManager,
            IServiceProvider serviceProvider,
            IMessageSubscriptionsRegistry subscriptionsRegistry) : base(logFactory)
        {
            _defaultRetryTimeout = defaultRetryTimeout;
            _formatterResolver   = formatterResolver;
            _internalQueue       = internalQueue;
            _log                   = logFactory.CreateLog(this);
            _logFactory            = logFactory;
            _repliesPublisher      = repliesPublisher;
            _rejectManager         = rejectManager;
            _retryManager          = retryManager;
            _serviceProvider       = serviceProvider;
            _subscriptionsRegistry = subscriptionsRegistry;

            _id = Interlocked.Increment(ref _instanceCounter);
        }