56 instantiations of HttpsConnectionAdapterOptions
InMemory.FunctionalTests (25)
HttpsConnectionMiddlewareTests.cs (25)
55listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 109listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 133new HttpsConnectionAdapterOptions 206listenOptions.UseHttps(new HttpsConnectionAdapterOptions 223listenOptions.UseHttps(new HttpsConnectionAdapterOptions 274Assert.Throws<ArgumentException>(() => CreateMiddleware(new HttpsConnectionAdapterOptions(), ListenOptions.DefaultHttpProtocols)); 282listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 302listenOptions.UseHttps(new HttpsConnectionAdapterOptions 366listenOptions.UseHttps(new HttpsConnectionAdapterOptions 408listenOptions.UseHttps(new HttpsConnectionAdapterOptions 438listenOptions.UseHttps(new HttpsConnectionAdapterOptions 470listenOptions.UseHttps(new HttpsConnectionAdapterOptions 824listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1115listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 1165listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1198listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1224listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1325CreateMiddleware(new HttpsConnectionAdapterOptions 1345CreateMiddleware(new HttpsConnectionAdapterOptions 1365new HttpsConnectionAdapterOptions 1414var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1428var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1442var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1455var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1466return CreateMiddleware(new HttpsConnectionAdapterOptions
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
367listenOptions.UseHttps(new HttpsConnectionAdapterOptions
Microsoft.AspNetCore.Server.Kestrel.Core (2)
KestrelConfigurationLoader.cs (1)
380var httpsOptions = new HttpsConnectionAdapterOptions();
ListenOptionsHttpsExtensions.cs (1)
172var options = new HttpsConnectionAdapterOptions();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (21)
SniOptionsSelectorTests.cs (21)
68fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 125fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 171fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 220fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 283fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 328fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 341fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 376fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 402fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 427var fallbackOptions = new HttpsConnectionAdapterOptions 472var fallbackOptions = new HttpsConnectionAdapterOptions 518fallbackHttpsOptions: new HttpsConnectionAdapterOptions(), 532var fallbackOptions = new HttpsConnectionAdapterOptions 559var fallbackOptions = new HttpsConnectionAdapterOptions 596new HttpsConnectionAdapterOptions(), 629new HttpsConnectionAdapterOptions(), 659new HttpsConnectionAdapterOptions(), 692new HttpsConnectionAdapterOptions 723new HttpsConnectionAdapterOptions 753new HttpsConnectionAdapterOptions 788new HttpsConnectionAdapterOptions
Microsoft.AspNetCore.Server.Kestrel.Tests (6)
HttpsConfigurationTests.cs (1)
220listenOptions.UseHttps(new HttpsConnectionAdapterOptions()
HttpsConnectionAdapterOptionsTest.cs (4)
17Assert.Equal(TimeSpan.FromSeconds(10), new HttpsConnectionAdapterOptions().HandshakeTimeout); 24Assert.Equal(value, new HttpsConnectionAdapterOptions { HandshakeTimeout = value }.HandshakeTimeout); 30Assert.Equal(TimeSpan.MaxValue, new HttpsConnectionAdapterOptions { HandshakeTimeout = Timeout.InfiniteTimeSpan }.HandshakeTimeout); 37var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpsConnectionAdapterOptions { HandshakeTimeout = value });
KestrelConfigurationLoaderTests.cs (1)
350var httpsOptions = new HttpsConnectionAdapterOptions();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
657listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = certificate });
51 references to HttpsConnectionAdapterOptions
InMemory.FunctionalTests (6)
HttpsConnectionMiddlewareTests.cs (6)
1414var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1428var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1442var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1455var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1473private static HttpsConnectionMiddleware CreateMiddleware(HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, TestApplicationErrorLogger testLogger = null) 1479private static HttpsConnectionMiddleware CreateMiddleware(HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols)
Microsoft.AspNetCore.Server.Kestrel.Core (40)
EndpointConfiguration.cs (3)
15internal EndpointConfiguration(bool isHttps, ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, IConfigurationSection configSection) 34/// Gets the <see cref="HttpsConnectionAdapterOptions"/>. 36public HttpsConnectionAdapterOptions HttpsOptions { get; }
HttpsConfigurationService.cs (2)
77HttpsConnectionAdapterOptions httpsOptions, 88public ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint)
HttpsConnectionAdapterOptions.cs (1)
22/// Initializes a new instance of <see cref="HttpsConnectionAdapterOptions"/>.
IHttpsConfigurationService.cs (2)
43HttpsConnectionAdapterOptions httpsOptions, 57ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint);
Internal\SniOptionsSelector.cs (1)
36HttpsConnectionAdapterOptions fallbackHttpsOptions,
KestrelConfigurationLoader.cs (2)
249internal void ApplyHttpsDefaults(HttpsConnectionAdapterOptions httpsOptions) 380var httpsOptions = new HttpsConnectionAdapterOptions();
KestrelServer.cs (2)
98HttpsConnectionAdapterOptions httpsOptions, 107public ListenOptions UseHttpsWithSni(ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, EndpointConfig endpoint)
KestrelServerOptions.cs (4)
199private Action<HttpsConnectionAdapterOptions> HttpsDefaults { get; set; } = _ => { }; 275public void ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions> configureOptions) 280internal void ApplyHttpsDefaults(HttpsConnectionAdapterOptions httpsOptions) 286internal void ApplyDefaultCertificate(HttpsConnectionAdapterOptions httpsOptions)
ListenOptions.cs (1)
143internal HttpsConnectionAdapterOptions? HttpsOptions { get; set; }
ListenOptionsHttpsExtensions.cs (14)
62/// <param name="configureOptions">An Action to configure the <see cref="HttpsConnectionAdapterOptions"/>.</param> 65Action<HttpsConnectionAdapterOptions> configureOptions) 112/// <param name="configureOptions">An Action to configure the <see cref="HttpsConnectionAdapterOptions"/>.</param> 115Action<HttpsConnectionAdapterOptions> configureOptions) 141/// <param name="configureOptions">An Action to configure the <see cref="HttpsConnectionAdapterOptions"/>.</param> 144Action<HttpsConnectionAdapterOptions> configureOptions) 162public static ListenOptions UseHttps(this ListenOptions listenOptions, Action<HttpsConnectionAdapterOptions> configureOptions) 172var options = new HttpsConnectionAdapterOptions(); 187/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 192public static ListenOptions UseHttps(this ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions) 211/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 219return listenOptions.UseHttps(serverOptionsSelectionCallback, state, HttpsConnectionAdapterOptions.DefaultHandshakeTimeout); 224/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 243/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>.
Middleware\HttpsConnectionMiddleware.cs (5)
37private readonly HttpsConnectionAdapterOptions? _options; 53public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, KestrelMetrics metrics) 58public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, ILoggerFactory loggerFactory, KestrelMetrics metrics) 534internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger) 538throw new NotSupportedException($"The {nameof(HttpsConnectionAdapterOptions.OnAuthenticate)} callback is not supported with HTTP/3.");
TlsConfigurationLoader.cs (2)
44HttpsConnectionAdapterOptions httpsOptions, 94HttpsConnectionAdapterOptions httpsOptions,
TlsHandshakeCallbackOptions.cs (1)
14private TimeSpan _handshakeTimeout = HttpsConnectionAdapterOptions.DefaultHandshakeTimeout;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
SniOptionsSelectorTests.cs (4)
427var fallbackOptions = new HttpsConnectionAdapterOptions 472var fallbackOptions = new HttpsConnectionAdapterOptions 532var fallbackOptions = new HttpsConnectionAdapterOptions 559var fallbackOptions = new HttpsConnectionAdapterOptions
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
350var httpsOptions = new HttpsConnectionAdapterOptions();