public void SetPrefetchCount(ushort prefetchCount) { RabbitMqConsumer consumer = _consumer; if (consumer != null) { consumer.SetPrefetchCount(prefetchCount); } }
void AddConsumerBinding() { if (_consumer != null) { return; } _consumer = new RabbitMqConsumer(_address, _purgeExistingMessages); _connectionHandler.AddBinding(_consumer); }