コード例 #1
0
 private QueueDeclareOk QueueDeclare(string queue, bool passive, bool durable, bool exclusive,
                                     bool autoDelete, IDictionary<string, object> arguments)
 {
     QueueDeclareRpcContinuation k = new QueueDeclareRpcContinuation();
     Enqueue(k);
     _Private_QueueDeclare(queue, passive, durable, exclusive, autoDelete, false, arguments);
     k.GetReply();
     return k.m_result;
 }
コード例 #2
0
 private QueueDeclareOk QueueDeclare(string queue, bool passive, bool durable, bool exclusive,
                                            bool autoDelete, IDictionary<string, object> arguments)
 {
     QueueDeclareRpcContinuation k = new QueueDeclareRpcContinuation();
     Enqueue(k);
     try
     {
         _Private_QueueDeclare(queue, passive, durable, exclusive, autoDelete, false, arguments);
     }
     catch (AlreadyClosedException)
     {
         // Ignored, since the continuation will be told about
         // the closure via an OperationInterruptedException because
         // of the shutdown event propagation.
     }
     k.GetReply();
     return k.m_result;
 }