1 instantiation of HttpListenerContext
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
144
_context = new
HttpListenerContext
(this);
42 references to HttpListenerContext
netstandard (1)
netstandard.cs (1)
1142
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
HttpListenerContext
))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
627
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
HttpListenerContext
))]
System.Net.HttpListener (40)
System\Net\HttpListener.cs (1)
290
public Task<
HttpListenerContext
> GetContextAsync()
System\Net\HttpListenerResponse.cs (2)
15
private readonly
HttpListenerContext
? _httpContext;
53
private
HttpListenerContext
HttpListenerContext => _httpContext!;
System\Net\Managed\ChunkedInputStream.cs (2)
39
private readonly
HttpListenerContext
_context;
59
public ChunkedInputStream(
HttpListenerContext
context, Stream stream, byte[] buffer, int offset, int length)
System\Net\Managed\HttpConnection.cs (1)
54
private
HttpListenerContext
_context;
System\Net\Managed\HttpEndPointListener.cs (2)
154
public bool BindContext(
HttpListenerContext
context)
167
public static void UnbindContext(
HttpListenerContext
context)
System\Net\Managed\HttpListener.Managed.cs (19)
15
private readonly Dictionary<
HttpListenerContext
,
HttpListenerContext
> _listenerContexts = new Dictionary<
HttpListenerContext
,
HttpListenerContext
>();
16
private readonly List<
HttpListenerContext
> _contextQueue = new List<
HttpListenerContext
>();
158
internal void UnregisterContext(
HttpListenerContext
context)
188
internal void RegisterContext(
HttpListenerContext
context)
220
Dictionary<
HttpListenerContext
,
HttpListenerContext
>.KeyCollection keys = _listenerContexts.Keys;
221
var all = new
HttpListenerContext
[keys.Count];
239
var ctxs = (
HttpListenerContext
[])_contextQueue.ToArray();
257
private
HttpListenerContext
? GetContextFromQueue()
266
HttpListenerContext
context = _contextQueue[0];
288
HttpListenerContext
? ctx = GetContextFromQueue();
302
public
HttpListenerContext
EndGetContext(IAsyncResult asyncResult)
329
HttpListenerContext
context = ares.GetContext()!;
334
internal AuthenticationSchemes SelectAuthenticationScheme(
HttpListenerContext
context)
339
public
HttpListenerContext
GetContext()
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
65
private readonly
HttpListenerContext
_context;
70
internal HttpListenerRequest(
HttpListenerContext
context)
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
46
internal HttpListenerResponse(
HttpListenerContext
context)
System\Net\Managed\ListenerAsyncResult.Managed.cs (6)
48
private
HttpListenerContext
? _context;
100
internal void Complete(
HttpListenerContext
context)
105
internal void Complete(
HttpListenerContext
context, bool synch)
144
!
HttpListenerContext
.IsBasicHeader(authHeader) ||
146
!
HttpListenerContext
.TryParseBasicAuth(authHeader.Substring(AuthenticationTypes.Basic.Length + 1), out errorCode, out _, out _))
188
internal
HttpListenerContext
? GetContext()
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (3)
13
internal static async Task<HttpListenerWebSocketContext> AcceptWebSocketAsyncCore(
HttpListenerContext
context,
93
private readonly
HttpListenerContext
_context;
96
internal HttpListenerWrappedWebSocket(WebSocket inner,
HttpListenerContext
context)
System\Net\WebSockets\HttpWebSocket.cs (1)
99
private static void ValidateWebSocketHeaders(
HttpListenerContext
context)