Пример #1
0
        void AddConsumerBinding()
        {
            if (_consumer != null)
            {
                return;
            }

            _consumer = new ConsumerBinding(_address, _purgeExistingMessages);

            _connectionHandler.AddBinding(_consumer);
        }
Пример #2
0
        void AddProducerBinding()
        {
            if (_producer != null)
            {
                return;
            }

            _producer = new ProducerBinding(_address, _bindToQueue, _publisherConfirmSettings);

            _connectionHandler.AddBinding(_producer);
        }