Esempio n. 1
0
        private RabbitMqBasicConsumer ConnectSubscription()
        {
            var channel  = GetChannel();
            var consumer = new RabbitMqBasicConsumer(channel);

            channel.BasicConsume(QueueName, noAck: false, consumer: consumer);
            return(consumer);
        }
Esempio n. 2
0
 private RabbitMqBasicConsumer ConnectSubscription()
 {
     var channel = GetChannel();
     var consumer = new RabbitMqBasicConsumer(channel);
     channel.BasicConsume(QueueName, noAck: false, consumer: consumer);
     return consumer;
 }