示例#1
0
 public DefaultConsumingProcess(IIdGenerator idGenerator,
                                IExchangeResolver exchangeResolver,
                                IMessageSerializer serializer,
                                IMessageTypeResolver messageTypeResolver,
                                IConsumerContainer consumerContainer,
                                IMessageFilter messageFilters,
                                IQueueFactory queueFactory,
                                IConsumerInvoker consumerInvoker,
                                RogerOptions options,
                                IAggregator aggregator)
 {
     this.consumerContainer        = consumerContainer;
     this.queueFactory             = queueFactory;
     this.consumerInvoker          = consumerInvoker;
     this.options                  = options;
     this.aggregator               = aggregator;
     this.exchangeResolver         = exchangeResolver;
     bindingKeyResolver            = new DefaultRoutingKeyResolver();
     this.messageTypeResolver      = messageTypeResolver;
     this.serializer               = serializer;
     this.idGenerator              = idGenerator;
     supportedMessageTypesResolver = new DefaultSupportedMessageTypesResolver();
     this.messageFilters           = messageFilters;
     aggregator.Subscribe(this);
 }