Exemplo n.º 1
0
        public bool EndWaitForItem(IAsyncResult result)
        {
            CompletedAsyncResult <bool> completedAsyncResult = result as CompletedAsyncResult <bool>;

            if (completedAsyncResult == null)
            {
                return(InputQueue <T> .AsyncQueueWaiter.End(result));
            }
            else
            {
                return(CompletedAsyncResult <bool> .End(result));
            }
        }
Exemplo n.º 2
0
        public bool EndDequeue(IAsyncResult result, out T value)
        {
            CompletedAsyncResult <T> completedAsyncResult = result as CompletedAsyncResult <T>;

            if (completedAsyncResult == null)
            {
                return(InputQueue <T> .AsyncQueueReader.End(result, out value));
            }
            else
            {
                value = CompletedAsyncResult <T> .End(result);

                return(true);
            }
        }
 public override void EndWrite(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }
Exemplo n.º 4
0
 public virtual void EndWrite(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }