System.Net.HttpRequestStream.HttpRequestStreamAsyncResult.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)
            {
                HttpRequestStreamAsyncResult asyncResult = (HttpRequestStreamAsyncResult)ThreadPoolBoundHandle.GetNativeOverlappedState(nativeOverlapped);

                if (NetEventSource.IsEnabled) NetEventSource.Info(null, $"asyncResult: {asyncResult} errorCode:0x {errorCode.ToString("x8")} numBytes: {numBytes} nativeOverlapped:0x {((IntPtr)nativeOverlapped).ToString("x8")}");

                IOCompleted(asyncResult, errorCode, numBytes);
            }
HttpRequestStream.HttpRequestStreamAsyncResult