System.Net.Cache.ForwardingReadStream.ReadCallback C# (CSharp) Method

ReadCallback() private method

private ReadCallback ( IAsyncResult transportResult ) : void
transportResult IAsyncResult
return void
        private void ReadCallback(IAsyncResult transportResult) {
            GlobalLog.Assert(transportResult.AsyncState is InnerAsyncResult, "InnerAsyncResult::ReadCallback|The state expected to be of type InnerAsyncResult, received {0}.", transportResult.GetType().FullName);
            if (transportResult.CompletedSynchronously)
            {
                return;
            }

            // Recover our asyncResult
            InnerAsyncResult userResult = transportResult.AsyncState as InnerAsyncResult;

            ReadComplete(transportResult);
        }