Example #1
0
        public QueueDeclareOk QueueDeclare(string queue, bool durable, bool exclusive,
                                           bool autoDelete, IDictionary <string, object> arguments)
        {
            var result = m_delegate.QueueDeclare(queue, durable, exclusive,
                                                 autoDelete, arguments);
            RecordedQueue rq = new RecordedQueue(this, result.QueueName).
                               Durable(durable).
                               Exclusive(exclusive).
                               AutoDelete(autoDelete).
                               Arguments(arguments).
                               ServerNamed(string.Empty.Equals(queue));

            m_connection.RecordQueue(result.QueueName, rq);
            return(result);
        }
        public void QueueDeclareNoWait(string queue, bool durable,
                                       bool exclusive, bool autoDelete,
                                       IDictionary <string, object> arguments)
        {
            _delegate.QueueDeclareNoWait(queue, durable, exclusive,
                                         autoDelete, arguments);
            RecordedQueue rq = new RecordedQueue(this, queue).
                               Durable(durable).
                               Exclusive(exclusive).
                               AutoDelete(autoDelete).
                               Arguments(arguments).
                               ServerNamed(string.Empty.Equals(queue));

            _connection.RecordQueue(queue, rq);
        }
 public void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
     bool autoDelete, IDictionary<string, object> arguments)
 {
     m_delegate.QueueDeclareNoWait(queue, durable, exclusive,
         autoDelete, arguments);
     RecordedQueue rq = new RecordedQueue(this, queue).
         Durable(durable).
         Exclusive(exclusive).
         AutoDelete(autoDelete).
         Arguments(arguments).
         ServerNamed(string.Empty.Equals(queue));
     m_connection.RecordQueue(queue, rq);
 }
 public void RecordQueue(string name, RecordedQueue q)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedQueues[name] = q;
     }
 }
 public QueueDeclareOk QueueDeclare(string queue, bool durable, bool exclusive,
     bool autoDelete, IDictionary<string, object> arguments)
 {
     var result = m_delegate.QueueDeclare(queue, durable, exclusive,
         autoDelete, arguments);
     RecordedQueue rq = new RecordedQueue(this, result.QueueName).
         Durable(durable).
         Exclusive(exclusive).
         AutoDelete(autoDelete).
         Arguments(arguments).
         ServerNamed(string.Empty.Equals(queue));
     m_connection.RecordQueue(result.QueueName, rq);
     return result;
 }