public void Should_only_create_a_single_IConsumerDispatcher_instance() { var dispatcher1 = dispatcherFactory.GetConsumerDispatcher(); var dispatcher2 = dispatcherFactory.GetConsumerDispatcher(); dispatcher1.ShouldBeTheSameAs(dispatcher2); }
/// <inheritdoc /> public IInternalConsumer CreateConsumer() { var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher(); return(new InternalConsumer(connection, handlerRunner, dispatcher, conventions, eventBus)); }
public IInternalConsumer CreateConsumer() { var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher(); return(new InternalConsumer(handlerRunner, logger, dispatcher, conventions, connectionConfiguration)); }
public IInternalConsumer CreateConsumer() { var dispatcher = consumerDispatcherFactory.GetConsumerDispatcher(); return(new InternalConsumer(handlerRunner, dispatcher)); }