Пример #1
0
        public bool EndDequeue(IAsyncResult result, out T value)
        {
            CompletedAsyncResult <T> typedResult = result as CompletedAsyncResult <T>;

            if (typedResult != null)
            {
                value = CompletedAsyncResult <T> .End(result);

                return(true);
            }

            return(AsyncQueueReader.End(result, out value));
        }
 protected virtual void OnEndCloseOutputSession(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }