public void SetPrefetchCount(ushort prefetchCount)
        {
            RabbitMqConsumer consumer = _consumer;

            if (consumer != null)
            {
                consumer.SetPrefetchCount(prefetchCount);
            }
        }
Exemplo n.º 2
0
        void AddConsumerBinding()
        {
            if (_consumer != null)
            {
                return;
            }

            _consumer = new RabbitMqConsumer(_address, _purgeExistingMessages);

            _connectionHandler.AddBinding(_consumer);
        }