public void Should_only_create_a_single_IConsumerDispatcher_instance()
        {
            var dispatcher1 = dispatcherFactory.GetConsumerDispatcher();
            var dispatcher2 = dispatcherFactory.GetConsumerDispatcher();

            dispatcher1.ShouldBeTheSameAs(dispatcher2);
        }
Пример #2
0
        /// <inheritdoc />
        public IInternalConsumer CreateConsumer()
        {
            var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher();

            return(new InternalConsumer(connection, handlerRunner, dispatcher, conventions, eventBus));
        }
Пример #3
0
        public IInternalConsumer CreateConsumer()
        {
            var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher();

            return(new InternalConsumer(handlerRunner, logger, dispatcher, conventions, connectionConfiguration));
        }
Пример #4
0
        public IInternalConsumer CreateConsumer()
        {
            var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher();

            return(new InternalConsumer(handlerRunner, dispatcher));
        }