public void SetUpConsumer() { _consumer.Count = Count; _dispatcher = new ConsumerDispatcher(null, Concurrency); _dispatcher.HandleBasicConsumeOk(_consumer, _consumerTag); }
public static void RegisterMessage <TContent>(this IServiceCollection service, IServiceProvider provider) where TContent : class, IMessageHandler { handler = handler ?? new ConsumerDispatcher(provider, _configuration); handler.ConfigureConsumer <TContent>(); }