예제 #1
0
        public BasicGetResult BasicGet(string queue,
                                       bool noAck)
        {
            BasicGetRpcContinuation k = new BasicGetRpcContinuation();

            Enqueue(k);
            try
            {
                _Private_BasicGet(queue, noAck);
            }
            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);
        }
예제 #2
0
 public BasicGetResult BasicGet(string queue,
                                bool noAck)
 {
     BasicGetRpcContinuation k = new BasicGetRpcContinuation();
     Enqueue(k);
     _Private_BasicGet(queue, noAck);
     k.GetReply();
     return k.m_result;
 }
예제 #3
0
 public BasicGetResult BasicGet(string queue,
     bool autoAck)
 {
     var k = new BasicGetRpcContinuation();
     Enqueue(k);
     _Private_BasicGet(queue, autoAck);
     k.GetReply(this.ContinuationTimeout);
     return k.m_result;
 }
예제 #4
0
 public BasicGetResult BasicGet(string queue,
                                bool noAck)
 {
     BasicGetRpcContinuation k = new BasicGetRpcContinuation();
     Enqueue(k);
     try
     {
         _Private_BasicGet(queue, noAck);
     }
     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;
 }