56 instantiations of HttpsConnectionAdapterOptions
InMemory.FunctionalTests (25)
HttpsConnectionMiddlewareTests.cs (25)
55listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 109listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 133new HttpsConnectionAdapterOptions 210listenOptions.UseHttps(new HttpsConnectionAdapterOptions 227listenOptions.UseHttps(new HttpsConnectionAdapterOptions 278Assert.Throws<ArgumentException>(() => CreateMiddleware(new HttpsConnectionAdapterOptions(), ListenOptions.DefaultHttpProtocols)); 286listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 306listenOptions.UseHttps(new HttpsConnectionAdapterOptions 370listenOptions.UseHttps(new HttpsConnectionAdapterOptions 412listenOptions.UseHttps(new HttpsConnectionAdapterOptions 442listenOptions.UseHttps(new HttpsConnectionAdapterOptions 474listenOptions.UseHttps(new HttpsConnectionAdapterOptions 828listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1119listenOptions.UseHttps(new HttpsConnectionAdapterOptions { ServerCertificate = _x509Certificate2 }); 1169listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1202listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1228listenOptions.UseHttps(new HttpsConnectionAdapterOptions 1329CreateMiddleware(new HttpsConnectionAdapterOptions 1349CreateMiddleware(new HttpsConnectionAdapterOptions 1369new HttpsConnectionAdapterOptions 1418var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1432var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1446var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1459var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1470return 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)
1418var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1432var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1446var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1459var httpConnectionAdapterOptions = new HttpsConnectionAdapterOptions 1477private static HttpsConnectionMiddleware CreateMiddleware(HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, TestApplicationErrorLogger testLogger = null) 1483private 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();