1 write to _requestNativeHandle
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.cs (1)
85_requestNativeHandle = pInProcessHandler;
21 references to _requestNativeHandle
Microsoft.AspNetCore.Server.IIS (21)
Core\IISHttpContext.cs (15)
296if (!_server.IsWebSocketAvailable(_requestNativeHandle)) 317NativeMethods.HttpSetManagedContext(_requestNativeHandle, (IntPtr)_thisHandle); 512AsyncIO = new AsyncIOEngine(this, _requestNativeHandle); 573NativeMethods.HttpHasResponse4(_requestNativeHandle); 582NativeMethods.HttpSetResponseStatusCode(_requestNativeHandle, (ushort)StatusCode, reasonPhrase); 589NativeMethods.HttpSetNeedGoAway(_requestNativeHandle); 623NativeMethods.HttpResponseSetUnknownHeader(_requestNativeHandle, pHeaderName, pHeaderValue, (ushort)headerValueBytes.Length, fReplace: isFirst); 628NativeMethods.HttpResponseSetKnownHeader(_requestNativeHandle, knownHeaderIndex, pHeaderValue, (ushort)headerValueBytes.Length, fReplace: isFirst); 662NativeMethods.HttpResponseSetTrailer(_requestNativeHandle, pHeaderName, pHeaderValue, (ushort)headerValueBytes.Length, replace: isFirst); 792NativeMethods.HttpSetCompletionStatus(_requestNativeHandle, requestNotificationStatus); 793NativeMethods.HttpPostCompletion(_requestNativeHandle, 0); 846NativeMethods.HttpGetAuthenticationInformation(_requestNativeHandle, out var authenticationType, out var token); 890_requestNativeHandle.Dispose(); 892await new ValueTask<object?>(_requestNativeHandle, _requestNativeHandle.Version);
Core\IISHttpContext.FeatureCollection.cs (5)
294return NativeMethods.HttpTryGetServerVariable(_requestNativeHandle, variableName, out var value) ? value : null; 306NativeMethods.HttpSetServerVariable(_requestNativeHandle, variableName, value); 371AsyncIO = new WebSocketsAsyncIOEngine(this, _requestNativeHandle); 502NativeMethods.HttpResetStream(_requestNativeHandle, (ulong)errorCode); 507NativeMethods.HttpDisableBuffering(_requestNativeHandle);
Core\IISHttpContext.IO.cs (1)
292NativeMethods.HttpCloseConnection(_requestNativeHandle);