Esempio n. 1
0
        public bool EndReceiveMessages(IAsyncResult result, out IEnumerable <AmqpMessage> messages)
        {
            if (result is ReceiveAsyncResult)
            {
                return(ReceiveAsyncResult.End(result, out messages));
            }

            messages = CompletedAsyncResult <IEnumerable <AmqpMessage> > .End(result);

            return(true);
        }
Esempio n. 2
0
 public void EndClose(IAsyncResult result)
 {
     if (result is CompletedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         AmqpTrace.Provider.AmqpLogOperationVerbose(this, TraceOperation.Execute, "EndClose");
         CloseAsyncResult.End(result);
     }
 }
Esempio n. 3
0
        public bool EndReceiveMessage(IAsyncResult result, out AmqpMessage message)
        {
            if (result is ReceiveAsyncResult)
            {
                IEnumerable <AmqpMessage> messages;
                bool retValue = ReceiveAsyncResult.End(result, out messages);
                message = messages.FirstOrDefault();
                return(retValue);
            }

            message = CompletedAsyncResult <IEnumerable <AmqpMessage> > .End(result).FirstOrDefault();

            return(true);
        }
Esempio n. 4
0
 void ILinkFactory.EndOpenLink(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }