Exemplo n.º 1
0
        public void HandleBasicGetEmpty()
        {
            BasicGetRpcContinuation k = (BasicGetRpcContinuation)m_continuationQueue.Next();

            k.m_result = null;
            k.HandleCommand(null); // release the continuation.
        }
Exemplo n.º 2
0
        public void HandleBasicGetOk(ulong deliveryTag,
                                     bool redelivered,
                                     string exchange,
                                     string routingKey,
                                     uint messageCount,
                                     IBasicProperties basicProperties,
                                     byte[] body)
        {
            BasicGetRpcContinuation k = (BasicGetRpcContinuation)m_continuationQueue.Next();

            k.m_result = new BasicGetResult(deliveryTag,
                                            redelivered,
                                            exchange,
                                            routingKey,
                                            messageCount,
                                            basicProperties,
                                            body);
            k.HandleCommand(null); // release the continuation.
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
 public BasicGetResult BasicGet(string queue,
                                bool noAck)
 {
     BasicGetRpcContinuation k = new BasicGetRpcContinuation();
     Enqueue(k);
     _Private_BasicGet(queue, noAck);
     k.GetReply();
     return k.m_result;
 }
Exemplo n.º 5
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;
 }
Exemplo n.º 6
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;
 }