1 instantiation of HttpListenerContext
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
134_context = new HttpListenerContext(this);
50 references to HttpListenerContext
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
86HttpListenerContext context = null; 107HttpListenerContext context = null; 126internal void HandleRequest(HttpListenerContext context) 170private void HandleRequest(HttpListenerContext context, ref bool responded)
Microsoft.AspNetCore.InternalTesting.Tests (2)
HttpClientSlimTest.cs (2)
68private HttpListener StartHost(out string address, int statusCode = 200, Func<HttpListenerContext, Task> handler = null) 102var context = task.Result;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
86HttpListenerContext context = null; 107HttpListenerContext context = null; 126internal void HandleRequest(HttpListenerContext context) 170private void HandleRequest(HttpListenerContext context, ref bool responded)
netstandard (1)
netstandard.cs (1)
1142[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.HttpListenerContext))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
627[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.HttpListenerContext))]
System.Net.HttpListener (38)
System\Net\HttpListener.cs (1)
290public Task<HttpListenerContext> GetContextAsync()
System\Net\HttpListenerResponse.cs (2)
15private readonly HttpListenerContext? _httpContext; 53private HttpListenerContext HttpListenerContext => _httpContext!;
System\Net\Managed\ChunkedInputStream.cs (2)
39private readonly HttpListenerContext _context; 59public ChunkedInputStream(HttpListenerContext context, Stream stream, byte[] buffer, int offset, int length)
System\Net\Managed\HttpConnection.cs (1)
53private HttpListenerContext _context;
System\Net\Managed\HttpEndPointListener.cs (2)
154public bool BindContext(HttpListenerContext context) 167public static void UnbindContext(HttpListenerContext context)
System\Net\Managed\HttpListener.Managed.cs (19)
15private readonly Dictionary<HttpListenerContext, HttpListenerContext> _listenerContexts = new Dictionary<HttpListenerContext, HttpListenerContext>(); 16private readonly List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>(); 158internal void UnregisterContext(HttpListenerContext context) 188internal void RegisterContext(HttpListenerContext context) 220Dictionary<HttpListenerContext, HttpListenerContext>.KeyCollection keys = _listenerContexts.Keys; 221var all = new HttpListenerContext[keys.Count]; 239var ctxs = (HttpListenerContext[])_contextQueue.ToArray(); 257private HttpListenerContext? GetContextFromQueue() 266HttpListenerContext context = _contextQueue[0]; 288HttpListenerContext? ctx = GetContextFromQueue(); 302public HttpListenerContext EndGetContext(IAsyncResult asyncResult) 329HttpListenerContext context = ares.GetContext()!; 334internal AuthenticationSchemes SelectAuthenticationScheme(HttpListenerContext context) 339public HttpListenerContext GetContext()
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
65private readonly HttpListenerContext _context; 70internal HttpListenerRequest(HttpListenerContext context)
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
46internal HttpListenerResponse(HttpListenerContext context)
System\Net\Managed\ListenerAsyncResult.Managed.cs (6)
47private HttpListenerContext? _context; 99internal void Complete(HttpListenerContext context) 104internal void Complete(HttpListenerContext context, bool synch) 143!HttpListenerContext.IsBasicHeader(authHeader) || 145!HttpListenerContext.TryParseBasicAuth(authHeader.Substring(AuthenticationTypes.Basic.Length + 1), out errorCode, out _, out _)) 187internal HttpListenerContext? GetContext()
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
12internal static async Task<HttpListenerWebSocketContext> AcceptWebSocketAsyncCore(HttpListenerContext context,
System\Net\WebSockets\HttpWebSocket.cs (1)
99private static void ValidateWebSocketHeaders(HttpListenerContext context)