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