public void HandleBasicGetEmpty() { BasicGetRpcContinuation k = (BasicGetRpcContinuation)m_continuationQueue.Next(); k.m_result = null; k.HandleCommand(null); // release the continuation. }
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. }
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); }
public BasicGetResult BasicGet(string queue, bool noAck) { BasicGetRpcContinuation k = new BasicGetRpcContinuation(); Enqueue(k); _Private_BasicGet(queue, noAck); k.GetReply(); return k.m_result; }
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; }
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; }