Пример #1
0
        public ConsumerSpecification(IEnumerable <IConsumerMessageSpecification <TConsumer> > messageSpecifications)
        {
            _messageTypes = messageSpecifications.ToDictionary(x => x.MessageType);

            _observers = new ConsumerConfigurationObservable();
            _handles   = _messageTypes.Values.Select(x => x.ConnectConsumerConfigurationObserver(_observers)).ToArray();
        }
 public ConsumerMessageSpecification()
 {
     _configurator = new PipeConfigurator <ConsumerConsumeContext <TConsumer, TMessage> >();
     _observers    = new ConsumerConfigurationObservable();
 }