System.Net.HttpResponseStreamAsyncResult.Callback C# (CSharp) Method

Callback() private static method

private static Callback ( uint errorCode, uint numBytes, NativeOverlapped nativeOverlapped ) : void
errorCode uint
numBytes uint
nativeOverlapped System.Threading.NativeOverlapped
return void
        private static unsafe void Callback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)
        {
            object state = ThreadPoolBoundHandle.GetNativeOverlappedState(nativeOverlapped);
            HttpResponseStreamAsyncResult asyncResult = state as HttpResponseStreamAsyncResult;
            if (NetEventSource.IsEnabled) NetEventSource.Info(null, "errorCode:0x" + errorCode.ToString("x8") + " numBytes:" + numBytes + " nativeOverlapped:0x" + ((IntPtr)nativeOverlapped).ToString("x8"));

            IOCompleted(asyncResult, errorCode, numBytes);
        }