public ConnectHandle ConnectConsumerConfigurationObserver(IConsumerConfigurationObserver observer)
 {
     return(new MultipleConnectHandle(_consumerSpecification.ConnectConsumerConfigurationObserver(observer),
                                      _cancelJobSpecification.ConnectConsumerConfigurationObserver(observer),
                                      _startJobSpecification.ConnectConsumerConfigurationObserver(observer),
                                      _submitJobSpecification.ConnectConsumerConfigurationObserver(observer)));
 }
        public ConsumerConfigurator(IConsumerFactory <TConsumer> consumerFactory, IConsumerConfigurationObserver observer)
        {
            _consumerFactory = consumerFactory;

            _specification = ConsumerConnectorCache <TConsumer> .Connector.CreateConsumerSpecification <TConsumer>();

            _specification.ConnectConsumerConfigurationObserver(observer);
        }
        public UntypedConsumerConfigurator(Func <Type, object> consumerFactory, IConsumerConfigurationObserver observer)
        {
            _consumerFactory = new DelegateConsumerFactory <TConsumer>(() => (TConsumer)consumerFactory(typeof(TConsumer)));

            _specification = ConsumerConnectorCache <TConsumer> .Connector.CreateConsumerSpecification <TConsumer>();

            _specification.ConnectConsumerConfigurationObserver(observer);
        }
 public ConnectHandle ConnectConsumerConfigurationObserver(IConsumerConfigurationObserver observer)
 {
     return(_specification.ConnectConsumerConfigurationObserver(observer));
 }