Esempio n. 1
0
 public ConsumerRunner(
     IRabbitMQClient client,
     ILogger <ConsumerRunner> logger,
     RabbitConsumer consumer,
     QueueInfo queue)
 {
     Client   = client;
     Logger   = logger;
     Consumer = consumer;
     Queue    = queue;
 }
Esempio n. 2
0
 public ConsumerRunner(
     IRabbitMQClient client,
     IServiceProvider provider,
     RabbitConsumer consumer,
     QueueInfo queue)
 {
     Client      = client;
     Logger      = provider.GetService <ILogger <ConsumerRunner> >();
     mpscChannel = provider.GetService <IMpscChannel <BasicDeliverEventArgs> >();
     mpscChannel.BindConsumer(BatchExecuter);
     Consumer = consumer;
     Queue    = queue;
 }