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

DisconnectAsyncResult() private method

private DisconnectAsyncResult ( HttpListener httpListener, ulong connectionId ) : Microsoft.Win32.SafeHandles
httpListener HttpListener
connectionId ulong
return Microsoft.Win32.SafeHandles
            internal unsafe DisconnectAsyncResult(HttpListener httpListener, ulong connectionId)
            {
                if (NetEventSource.IsEnabled) NetEventSource.Info(this, $"HttpListener: {httpListener}, ConnectionId: {connectionId}");
                _ownershipState = 1;
                _httpListener = httpListener;
                _connectionId = connectionId;
                // we can call the Unsafe API here, we won't ever call user code
                _nativeOverlapped = httpListener._requestQueueBoundHandle.AllocateNativeOverlapped(s_IOCallback, state: this, pinData: null);
            }