Inheritance: RabbitMQ.Client.Impl.RecordedEntity
示例#1
0
        public void BasicCancel(string consumerTag)
        {
            RecordedConsumer cons = m_connection.DeleteRecordedConsumer(consumerTag);

            if (cons != null)
            {
                m_connection.MaybeDeleteRecordedAutoDeleteQueue(cons.Queue);
            }
            m_delegate.BasicCancel(consumerTag);
        }
示例#2
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);
        }
 public void RecordConsumer(string name, RecordedConsumer c)
 {
     lock (m_recordedEntitiesLock)
     {
         if (!m_recordedConsumers.ContainsKey(name))
         {
             m_recordedConsumers.Add(name, c);
         }
     }
 }
 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;
 }