2 types derived from ListenOptions
Microsoft.AspNetCore.Server.Kestrel.Core (2)
AnyIPListenOptions.cs (1)
11internal sealed class AnyIPListenOptions : ListenOptions
LocalhostListenOptions.cs (1)
10internal sealed class LocalhostListenOptions : ListenOptions
8 instantiations of ListenOptions
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\AddressBinder.cs (3)
122options = new ListenOptions(parsedAddress.UnixPipePath); 126options = new ListenOptions(new NamedPipeEndPoint(parsedAddress.NamedPipeName)); 135options = new ListenOptions(endpoint);
KestrelServerOptions.cs (4)
523var listenOptions = new ListenOptions(endPoint); 589var listenOptions = new ListenOptions(socketPath); 611var listenOptions = new ListenOptions(handle); 634var listenOptions = new ListenOptions(new NamedPipeEndPoint(pipeName));
ListenOptions.cs (1)
236var options = new ListenOptions(new IPEndPoint(address, IPEndPoint!.Port))
310 references to ListenOptions
Aspire.Dashboard (1)
Authentication\Connection\ListenOptionsConnectionTypeExtensions.cs (1)
10public static void UseConnectionTypes(this ListenOptions listenOptions, ConnectionType[] connectionTypes)
Aspire.Dashboard.Tests (1)
Integration\DashboardClientAuthTests.cs (1)
97void ConfigureListen(ListenOptions options)
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
160void ConfigureListen(ListenOptions options)
InMemory.FunctionalTests (65)
ConnectionLimitTests.cs (1)
237var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
ConnectionMiddlewareTests.cs (8)
39var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 135var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 158var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 184var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 211var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 243var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 271var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 302var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
HttpProtocolSelectionTests.cs (2)
62var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 81var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
HttpsConnectionMiddlewareTests.cs (41)
53void ConfigureListenOptions(ListenOptions listenOptions) 86void ConfigureListenOptions(ListenOptions listenOptions) 107void ConfigureListenOptions(ListenOptions listenOptions) 130void ConfigureListenOptions(ListenOptions listenOptions) 170void ConfigureListenOptions(ListenOptions listenOptions) 225void ConfigureListenOptions(ListenOptions listenOptions) 250void ConfigureListenOptions(ListenOptions listenOptions) 278Assert.Throws<ArgumentException>(() => CreateMiddleware(new HttpsConnectionAdapterOptions(), ListenOptions.DefaultHttpProtocols)); 284void ConfigureListenOptions(ListenOptions listenOptions) 304void ConfigureListenOptions(ListenOptions listenOptions) 335void ConfigureListenOptions(ListenOptions listenOptions) 368void ConfigureListenOptions(ListenOptions listenOptions) 410void ConfigureListenOptions(ListenOptions listenOptions) 440void ConfigureListenOptions(ListenOptions listenOptions) 472void ConfigureListenOptions(ListenOptions listenOptions) 503void ConfigureListenOptions(ListenOptions listenOptions) 539void ConfigureListenOptions(ListenOptions listenOptions) 583void ConfigureListenOptions(ListenOptions listenOptions) 624void ConfigureListenOptions(ListenOptions listenOptions) 665void ConfigureListenOptions(ListenOptions listenOptions) 709void ConfigureListenOptions(ListenOptions listenOptions) 757void ConfigureListenOptions(ListenOptions listenOptions) 826void ConfigureListenOptions(ListenOptions listenOptions) 881void ConfigureListenOptions(ListenOptions listenOptions) 923static void ConfigureListenOptions(ListenOptions listenOptions) 951static void ConfigureListenOptions(ListenOptions listenOptions) 983static void ConfigureListenOptions(ListenOptions listenOptions) 1018void ConfigureListenOptions(ListenOptions listenOptions) 1065void ConfigureListenOptions(ListenOptions listenOptions) 1117void ConfigureListenOptions(ListenOptions listenOptions) 1132void ConfigureListenOptions(ListenOptions listenOptions) 1167void ConfigureListenOptions(ListenOptions listenOptions) 1200void ConfigureListenOptions(ListenOptions listenOptions) 1226void ConfigureListenOptions(ListenOptions listenOptions) 1249void ConfigureListenOptions(ListenOptions listenOptions) 1274void ConfigureListenOptions(ListenOptions listenOptions) 1333ListenOptions.DefaultHttpProtocols); 1353ListenOptions.DefaultHttpProtocols)); 1373ListenOptions.DefaultHttpProtocols, 1387void ConfigureListenOptions(ListenOptions listenOptions) 1474ListenOptions.DefaultHttpProtocols);
KestrelMetricsTests.cs (5)
46var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 109var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 323var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 441var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 493var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
ResponseDrainingTests.cs (3)
15public static TheoryData<ListenOptions> ConnectionMiddlewareData => new TheoryData<ListenOptions> 23public async Task ConnectionClosedWhenResponseNotDrainedAtMinimumDataRate(ListenOptions listenOptions)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
111Func<ListenOptions, Task> createBinding) 126Func<ListenOptions, CancellationToken, Task> createBinding)
TestTransport\TestServer.cs (3)
49public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions) 54public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions) 57var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
Microsoft.AspNetCore.Server.Kestrel.Core (187)
EndpointConfiguration.cs (2)
15internal EndpointConfiguration(bool isHttps, ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, IConfigurationSection configSection) 31public ListenOptions ListenOptions { get; }
HttpsConfigurationService.cs (11)
27private Action<FeatureCollection, ListenOptions, ILogger<HttpsConnectionMiddleware>>? _populateMultiplexedTransportFeatures; 28private Func<ListenOptions, ListenOptions>? _useHttpsWithDefaults; 88public ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint) 103public void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions) 110public ListenOptions UseHttpsWithDefaults(ListenOptions listenOptions) 144internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<HttpsConnectionMiddleware> logger) 181internal static ListenOptions UseHttpsWithDefaultsWorker(ListenOptions listenOptions)
IHttpsConfigurationService.cs (9)
50/// Calls an appropriate overload of <see cref="Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.UseHttps(ListenOptions)"/> 53/// <returns>Updated <see cref="ListenOptions"/> for convenient chaining.</returns> 57ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint); 74void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions); 77/// Calls <see cref="Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.UseHttps(ListenOptions)"/> 80/// <returns>Updated <see cref="ListenOptions"/> for convenient chaining.</returns> 84ListenOptions UseHttpsWithDefaults(ListenOptions listenOptions);
Internal\AddressBindContext.cs (2)
14Func<ListenOptions, CancellationToken, Task> createBinding) 28public Func<ListenOptions, CancellationToken, Task> CreateBinding { get; }
Internal\AddressBinder.cs (21)
19public static Task BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func<ListenOptions, ListenOptions> useHttps, CancellationToken cancellationToken) 35private static IStrategy CreateStrategy(ListenOptions[] listenOptions, string[] addresses, bool preferAddresses, Func<ListenOptions, ListenOptions> useHttps) 86internal static async Task BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) 100internal static ListenOptions ParseAddress(string address, out bool https) 119ListenOptions? options = null; 155var httpDefault = ParseAddress(Constants.DefaultServerAddress, out _); 168public OverrideWithAddressesStrategy(IReadOnlyCollection<string> addresses, Func<ListenOptions, ListenOptions> useHttps) 189public OverrideWithEndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints, string[] originalAddresses) 208private readonly IReadOnlyCollection<ListenOptions> _endpoints; 210public EndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints) 217foreach (var endpoint in _endpoints) 227private readonly Func<ListenOptions, ListenOptions> _useHttps; 229public AddressesStrategy(IReadOnlyCollection<string> addresses, Func<ListenOptions, ListenOptions> useHttps) 239var options = ParseAddress(address, out var https);
Internal\ConfigurationReader.cs (6)
305(Protocols ?? ListenOptions.DefaultHttpProtocols) == (other.Protocols ?? ListenOptions.DefaultHttpProtocols) && 313Protocols ?? ListenOptions.DefaultHttpProtocols, SslProtocols ?? System.Security.Authentication.SslProtocols.None, 347(Protocols ?? ListenOptions.DefaultHttpProtocols) == (other.Protocols ?? ListenOptions.DefaultHttpProtocols) && 353Protocols ?? ListenOptions.DefaultHttpProtocols, SslProtocols ?? System.Security.Authentication.SslProtocols.None,
Internal\Infrastructure\TransportManager.cs (1)
65public async Task<EndPoint> BindAsync(EndPoint endPoint, MultiplexedConnectionDelegate multiplexedConnectionDelegate, ListenOptions listenOptions, CancellationToken cancellationToken)
Internal\KestrelServerImpl.cs (4)
135async Task OnBind(ListenOptions options, CancellationToken onBindCancellationToken) 363foreach (var lo in endpointsToStop) 369foreach (var listenOption in endpointsToStop) 384foreach (var listenOption in endpointsToStart)
KestrelConfigurationLoader.cs (17)
99public KestrelConfigurationLoader Endpoint(IPAddress address, int port, Action<ListenOptions> configure) 114public KestrelConfigurationLoader Endpoint(IPEndPoint endPoint, Action<ListenOptions> configure) 137public KestrelConfigurationLoader LocalhostEndpoint(int port, Action<ListenOptions> configure) 157public KestrelConfigurationLoader AnyIPEndpoint(int port, Action<ListenOptions> configure) 177public KestrelConfigurationLoader UnixSocketEndpoint(string socketPath, Action<ListenOptions> configure) 202public KestrelConfigurationLoader NamedPipeEndpoint(string pipeName, Action<ListenOptions> configure) 223public KestrelConfigurationLoader HandleEndpoint(ulong handle, Action<ListenOptions> configure) 237internal void ApplyEndpointDefaults(ListenOptions listenOptions) 333internal (List<ListenOptions>, List<ListenOptions>) Reload() 341var endpointsToStart = new List<ListenOptions>(); 342var endpointsToReuse = new List<ListenOptions>(); 359var listenOptions = AddressBinder.ParseAddress(endpoint.Url, out var https); 390var matchingBoundEndpoints = new List<ListenOptions>(); 391foreach (var o in endpointsToStop) 453foreach (var endpointToStart in endpointsToStart) 477foreach (var endpointToStop in endpointsToStop)
KestrelServer.cs (5)
87public void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions) 92public ListenOptions UseHttpsWithDefaults(ListenOptions listenOptions) 107public ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint)
KestrelServerOptions.cs (28)
74internal List<ListenOptions> CodeBackedListenOptions { get; } = new List<ListenOptions>(); 75internal List<ListenOptions> ConfigurationBackedListenOptions { get; } = new List<ListenOptions>(); 77internal ListenOptions[] GetListenOptions() 82return Array.Empty<ListenOptions>(); 85var result = new ListenOptions[resultCount]; 92internal List<ListenOptions> OptionsInUse { get; } = new List<ListenOptions>(); 151[Obsolete($"This property is obsolete and will be removed in a future version. It no longer has any impact on runtime behavior. Use {nameof(Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions)}.{nameof(Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.DisableAltSvcHeader)} to configure \"Alt-Svc\" behavior.", error: true)] 194private Action<ListenOptions> EndpointDefaults { get; set; } = _ => { }; 259public void ConfigureEndpointDefaults(Action<ListenOptions> configureOptions) 264internal void ApplyEndpointDefaults(ListenOptions listenOptions) 360writer.WritePropertyName(nameof(ListenOptions)); 362foreach (var listenOptions in OptionsInUse) 481public void Listen(IPAddress address, int port, Action<ListenOptions> configure) 509public void Listen(IPEndPoint endPoint, Action<ListenOptions> configure) 518public void Listen(EndPoint endPoint, Action<ListenOptions> configure) 523var listenOptions = new ListenOptions(endPoint); 539public void ListenLocalhost(int port, Action<ListenOptions> configure) 557public void ListenAnyIP(int port, Action<ListenOptions> configure) 579public void ListenUnixSocket(string socketPath, Action<ListenOptions> configure) 589var listenOptions = new ListenOptions(socketPath); 607public void ListenHandle(ulong handle, Action<ListenOptions> configure) 611var listenOptions = new ListenOptions(handle); 629public void ListenNamedPipe(string pipeName, Action<ListenOptions> configure) 634var listenOptions = new ListenOptions(new NamedPipeEndPoint(pipeName));
ListenOptions.cs (7)
58/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="System.Net.IPEndPoint"/>. 66/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="UnixDomainSocketEndPoint"/>. 74/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="NamedPipeEndPoint"/>. 82/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="FileHandleEndPoint"/>. 169/// Configured by the <c>UseHttps()</c> and <see cref="Hosting.ListenOptionsConnectionLoggingExtensions.UseConnectionLogging(ListenOptions)"/> 234protected internal ListenOptions Clone(IPAddress address) 236var options = new ListenOptions(new IPEndPoint(address, IPEndPoint!.Port))
ListenOptionsHttpsExtensions.cs (61)
17/// Extension methods for <see cref="ListenOptions"/> that configure Kestrel to use HTTPS for a given endpoint. 25/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 26/// <returns>The <see cref="ListenOptions"/>.</returns> 27public static ListenOptions UseHttps(this ListenOptions listenOptions) => listenOptions.UseHttps(_ => { }); 32/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 35/// <returns>The <see cref="ListenOptions"/>.</returns> 36public static ListenOptions UseHttps(this ListenOptions listenOptions, string fileName) 45/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 49/// <returns>The <see cref="ListenOptions"/>.</returns> 50public static ListenOptions UseHttps(this ListenOptions listenOptions, string fileName, string? password) 59/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 63/// <returns>The <see cref="ListenOptions"/>.</returns> 64public static ListenOptions UseHttps(this ListenOptions listenOptions, string fileName, string? password, 74/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 77/// <returns>The <see cref="ListenOptions"/>.</returns> 78public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject) 84/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 88/// <returns>The <see cref="ListenOptions"/>.</returns> 89public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid) 95/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 100/// <returns>The <see cref="ListenOptions"/>.</returns> 101public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location) 107/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 113/// <returns>The <see cref="ListenOptions"/>.</returns> 114public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location, 123/// <param name="listenOptions"> The <see cref="ListenOptions"/> to configure.</param> 125/// <returns>The <see cref="ListenOptions"/>.</returns> 126public static ListenOptions UseHttps(this ListenOptions listenOptions, X509Certificate2 serverCertificate) 139/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 142/// <returns>The <see cref="ListenOptions"/>.</returns> 143public static ListenOptions UseHttps(this ListenOptions listenOptions, X509Certificate2 serverCertificate, 159/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 161/// <returns>The <see cref="ListenOptions"/>.</returns> 162public static ListenOptions UseHttps(this ListenOptions listenOptions, Action<HttpsConnectionAdapterOptions> configureOptions) 189/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 191/// <returns>The <see cref="ListenOptions"/>.</returns> 192public static ListenOptions UseHttps(this ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions) 213/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 216/// <returns>The <see cref="ListenOptions"/>.</returns> 217public static ListenOptions UseHttps(this ListenOptions listenOptions, ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state) 226/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 230/// <returns>The <see cref="ListenOptions"/>.</returns> 231public static ListenOptions UseHttps(this ListenOptions listenOptions, ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state, TimeSpan handshakeTimeout) 245/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param> 247/// <returns>The <see cref="ListenOptions"/>.</returns> 248public static ListenOptions UseHttps(this ListenOptions listenOptions, TlsHandshakeCallbackOptions callbackOptions)
LocalhostListenOptions.cs (2)
35var v4Options = Clone(IPAddress.Loopback); 49var v6Options = Clone(IPAddress.IPv6Loopback);
Middleware\ListenOptionsConnectionLoggingExtensions.cs (6)
21/// The <see cref="ListenOptions"/>. 23public static ListenOptions UseConnectionLogging(this ListenOptions listenOptions) 32/// The <see cref="ListenOptions"/>. 34public static ListenOptions UseConnectionLogging(this ListenOptions listenOptions, string? loggerName)
Systemd\KestrelServerOptionsSystemdExtensions.cs (1)
37public static KestrelServerOptions UseSystemd(this KestrelServerOptions options, Action<ListenOptions> configure)
TlsConfigurationLoader.cs (4)
88/// Calls an appropriate overload of <see cref="Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.UseHttps(ListenOptions)"/> 91/// <returns>Updated <see cref="ListenOptions"/> for convenient chaining.</returns> 92public ListenOptions UseHttpsWithSni( 93ListenOptions listenOptions,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (21)
AddressBinderTests.cs (12)
18private readonly Func<ListenOptions, ListenOptions> _noopUseHttps = l => l; 56var listenOptions = AddressBinder.ParseAddress($"http://{host}", out var https); 67var listenOptions = AddressBinder.ParseAddress("http://localhost", out var https); 80var listenOptions = AddressBinder.ParseAddress("http://pipe:8080", out var https); 90var listenOptions = AddressBinder.ParseAddress(address, out var https); 101var listenOptions = AddressBinder.ParseAddress(address, out var https); 112var listenOptions = AddressBinder.ParseAddress(address, out var https); 123var listenOptions = AddressBinder.ParseAddress("http://unix:/tmp/kestrel-test.sock", out var https); 134var listenOptions = AddressBinder.ParseAddress(@"http://unix:/c:/foo/bar/pipe.socket", out var https); 148var listenOptions = AddressBinder.ParseAddress(address, out var https); 300var endpoints = new List<ListenOptions>();
KestrelServerOptionsTests.cs (1)
31Assert.Equal(ListenOptions.DefaultHttpProtocols, options.CodeBackedListenOptions[0].Protocols);
ListenOptionsTests.cs (6)
18var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 19Assert.Equal(ListenOptions.DefaultHttpProtocols, listenOptions.Protocols); 38var clone = localhostListenOptions.Clone(IPAddress.IPv6Loopback); 56var clone1 = localhostListenOptions.Clone(IPAddress.IPv6Loopback); 63var clone2 = localhostListenOptions.Clone(IPAddress.IPv6Loopback); 71var listenOptions = new ListenOptions(new UriEndPoint(new Uri("http://127.0.0.1:5555")));
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
111Func<ListenOptions, Task> createBinding) 126Func<ListenOptions, CancellationToken, Task> createBinding)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
111Func<ListenOptions, Task> createBinding) 126Func<ListenOptions, CancellationToken, Task> createBinding)
Microsoft.AspNetCore.Server.Kestrel.Tests (9)
KestrelConfigurationLoaderTests.cs (9)
405var listenOptions = Assert.Single(serverOptions.ConfigurationBackedListenOptions); 827var end1 = Assert.Single(endpointsToStart); 1121Assert.Equal(ListenOptions.DefaultHttpProtocols, opt.Protocols); 1151Assert.Equal(ListenOptions.DefaultHttpProtocols, opt.Protocols); 1158Assert.Equal(ListenOptions.DefaultHttpProtocols, opt.Protocols); 1367var end1 = Assert.Single(endpointsToStart); 1527var stopEndpoint = Assert.Single(endpointsToStop); 1528var startEndpoint = Assert.Single(endpointsToStart); 1531Assert.Equal(ListenOptions.DefaultHttpProtocols, stopEndpoint.Protocols);
Sockets.BindTests (4)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (4)
33private ListenOptions _listenOptions; 46public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions) 51public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null) 54var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
Sockets.FunctionalTests (19)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (4)
33private ListenOptions _listenOptions; 46public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions) 51public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null) 54var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
21var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 51var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
49public static Dictionary<string, Func<ListenOptions>> ConnectionMiddlewareData { get; } = new Dictionary<string, Func<ListenOptions>>
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (11)
36public static TheoryData<ListenOptions> ConnectionMiddlewareData => new TheoryData<ListenOptions> 148public async Task WriteAfterConnectionCloseNoops(ListenOptions listenOptions) 191public async Task ThrowsOnWriteWithRequestAbortedTokenAfterRequestIsAborted(ListenOptions listenOptions) 261public async Task WritingToConnectionAfterUnobservedCloseTriggersRequestAbortedToken(ListenOptions listenOptions) 352public async Task AppCanHandleClientAbortingConnectionMidResponse(ListenOptions listenOptions) 423public async Task ClientAbortingConnectionImmediatelyIsNotLoggedHigherThanDebug(ListenOptions listenOptions) 655void ConfigureListenOptions(ListenOptions listenOptions) 877var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 954var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 1041var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));