示例#1
0
        public string BasicConsume(string queue,
                                   bool noAck,
                                   string consumerTag,
                                   bool noLocal,
                                   bool exclusive,
                                   IDictionary <string, object> arguments,
                                   IBasicConsumer consumer)
        {
            var result = m_delegate.BasicConsume(queue, noAck, consumerTag, noLocal,
                                                 exclusive, arguments, consumer);
            RecordedConsumer rc = new RecordedConsumer(this, queue).
                                  WithConsumerTag(result).
                                  WithConsumer(consumer).
                                  WithExclusive(exclusive).
                                  WithAutoAck(noAck).
                                  WithArguments(arguments);

            m_connection.RecordConsumer(result, rc);
            return(result);
        }