System.Net.HttpListener.DisconnectAsyncResult.IOCompleted C# (CSharp) Method

IOCompleted() private static method

private static IOCompleted ( DisconnectAsyncResult asyncResult, uint errorCode, uint numBytes, NativeOverlapped nativeOverlapped ) : void
asyncResult DisconnectAsyncResult
errorCode uint
numBytes uint
nativeOverlapped System.Threading.NativeOverlapped
return void
            private static unsafe void IOCompleted(DisconnectAsyncResult asyncResult, uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)
            {
                if (NetEventSource.IsEnabled) NetEventSource.Info(null, "_connectionId:" + asyncResult._connectionId);
                asyncResult._httpListener._requestQueueBoundHandle.FreeNativeOverlapped(nativeOverlapped);
                if (Interlocked.Exchange(ref asyncResult._ownershipState, 2) == 0)
                {
                    asyncResult.HandleDisconnect();
                }
            }

Same methods

HttpListener.DisconnectAsyncResult::IOCompleted ( uint errorCode, uint numBytes, NativeOverlapped nativeOverlapped ) : void