コード例 #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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 public void RecordQueue(string name, RecordedQueue q)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedQueues[name] = q;
     }
 }
コード例 #5
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;
 }