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

            if (consumer != null)
            {
                consumer.SetPrefetchCount(prefetchCount);
            }
        }
예제 #2
0
        void AddConsumerBinding()
        {
            if (_consumer != null)
            {
                return;
            }

            _consumer = new RabbitMqConsumer(_address, _purgeExistingMessages);

            _connectionHandler.AddBinding(_consumer);
        }