4 instantiations of HttpListener
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
281HttpListener listener = new HttpListener();
Microsoft.AspNetCore.InternalTesting.Tests (2)
HttpClientSlimTest.cs (2)
70var listener = new HttpListener(); 94listener = new HttpListener();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
281HttpListener listener = new HttpListener();
55 references to HttpListener
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (5)
17private readonly HttpListener _listener; 35private RevocationResponder(HttpListener listener, string uriPrefix) 267HttpListener listener = OpenListener(out string uriPrefix); 274private static HttpListener OpenListener(out string uriPrefix) 281HttpListener listener = new HttpListener();
Microsoft.AspNetCore.InternalTesting.Tests (6)
HttpClientSlimTest.cs (6)
20using (var host = StartHost(out var address)) 29using (var host = StartHost(out var address, statusCode: 500)) 38using (var host = StartHost(out var address, handler: context => context.Request.InputStream.CopyToAsync(context.Response.OutputStream))) 47using (var host = StartHost(out var address, statusCode: 500)) 68private HttpListener StartHost(out string address, int statusCode = 200, Func<HttpListenerContext, Task> handler = null) 70var listener = new HttpListener();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (5)
17private readonly HttpListener _listener; 35private RevocationResponder(HttpListener listener, string uriPrefix) 267HttpListener listener = OpenListener(out string uriPrefix); 274private static HttpListener OpenListener(out string uriPrefix) 281HttpListener listener = new HttpListener();
netstandard (1)
netstandard.cs (1)
1140[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.HttpListener))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
625[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.HttpListener))]
System.Net.HttpListener (37)
System\Net\HttpListener.cs (2)
293(callback, state) => ((HttpListener)state!).BeginGetContext(callback, state), 294iar => ((HttpListener)iar!.AsyncState!).EndGetContext(iar),
System\Net\HttpListenerContext.cs (1)
12internal HttpListener? _listener;
System\Net\HttpListenerPrefixCollection.cs (2)
31private readonly HttpListener _httpListener; 33internal HttpListenerPrefixCollection(HttpListener listener)
System\Net\Managed\HttpConnection.cs (4)
66private HttpListener? _lastListener; 87_sslStream = HttpListener.CreateSslStream(new NetworkStream(sock, false), false, (t, c, ch, e) => 230HttpListener? listener = _context._listener; 308HttpListener listener = _context._listener!;
System\Net\Managed\HttpEndPointListener.cs (17)
42private readonly HttpListener _listener; 46private Dictionary<ListenerPrefix, HttpListener> _prefixes; 52public HttpEndPointListener(HttpListener listener, IPAddress addr, int port, bool secure) 59_cert = HttpListener.LoadCertificateAndKey(addr, port); 72_prefixes = new Dictionary<ListenerPrefix, HttpListener>(); 76internal HttpListener Listener 158HttpListener? listener = SearchListener(req.Url, out prefix); 175private HttpListener? SearchListener(Uri? uri, out ListenerPrefix? prefix) 186HttpListener? bestMatch = null; 191Dictionary<ListenerPrefix, HttpListener> localPrefixes = _prefixes; 233private static HttpListener? MatchFromList(string path, List<ListenerPrefix>? list, out ListenerPrefix? prefix) 239HttpListener? bestMatch = null; 320public void AddPrefix(ListenerPrefix prefix, HttpListener listener) 348Dictionary<ListenerPrefix, HttpListener> prefs, p2; 356p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs); 392Dictionary<ListenerPrefix, HttpListener> prefs, p2; 399p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs);
System\Net\Managed\HttpEndPointManager.cs (7)
46public static void AddListener(HttpListener listener) 70public static void AddPrefix(string prefix, HttpListener listener) 78private static void AddPrefixInternal(string p, HttpListener listener) 110private static HttpEndPointListener GetEPListener(string host, int port, HttpListener listener, bool secure) 184public static void RemoveListener(HttpListener listener) 195public static void RemovePrefix(string prefix, HttpListener listener) 203private static void RemovePrefixInternal(string prefix, HttpListener listener)
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (1)
13internal HttpListenerTimeoutManager(HttpListener _) { }
System\Net\Managed\ListenerAsyncResult.Managed.cs (2)
50internal readonly HttpListener _parent; 54public ListenerAsyncResult(HttpListener parent, AsyncCallback? cb, object? state)
System\Net\Managed\ListenerPrefix.cs (1)
45internal HttpListener? _listener;