4 instantiations of HttpsConnectionMiddleware
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (2)
1628return new HttpsConnectionMiddleware(context => Task.CompletedTask, options, httpProtocols, loggerFactory, new KestrelMetrics(new TestMeterFactory())); 1633return new HttpsConnectionMiddleware(context => Task.CompletedTask, options, httpProtocols, new KestrelMetrics(new TestMeterFactory()));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
ListenOptionsHttpsExtensions.cs (2)
206var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 273var middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
71 references to HttpsConnectionMiddleware
InMemory.FunctionalTests (6)
HttpsConnectionMiddlewareTests.cs (5)
1570var middleware = CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http1AndHttp2); 1584var middleware = CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http1AndHttp2); 1616private static HttpsConnectionMiddleware CreateMiddleware(X509Certificate2 serverCertificate) 1625private static HttpsConnectionMiddleware CreateMiddleware(HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, TestApplicationErrorLogger testLogger = null) 1631private static HttpsConnectionMiddleware CreateMiddleware(HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols)
HttpsTests.cs (1)
792if (categoryName == TypeNameHelper.GetTypeDisplayName(typeof(HttpsConnectionMiddleware)))
Microsoft.AspNetCore.Server.Kestrel.Core (40)
HttpsConfigurationService.cs (7)
27private Action<FeatureCollection, ListenOptions, ILogger<HttpsConnectionMiddleware>>? _populateMultiplexedTransportFeatures; 30private ILogger<HttpsConnectionMiddleware>? _httpsLogger; 60ILogger<HttpsConnectionMiddleware> httpsLogger) 144internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<HttpsConnectionMiddleware> logger) 150var sslServerAuthenticationOptions = HttpsConnectionMiddleware.CreateHttp3Options(listenOptions.HttpsOptions, logger); 245private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 250ILogger<HttpsConnectionMiddleware> httpsLogger)
IHttpsConfigurationService.cs (1)
34ILogger<HttpsConnectionMiddleware> httpsLogger);
Internal\SniOptionsSelector.cs (7)
23private readonly ILogger<HttpsConnectionMiddleware> _logger; 38ILogger<HttpsConnectionMiddleware> logger) 80HttpsConnectionMiddleware.EnsureCertificateIsAllowedForServerAuth(cert2, logger); 90HttpsConnectionMiddleware.RemoteCertificateValidationCallback( 95httpProtocols = HttpsConnectionMiddleware.ValidateAndNormalizeHttpProtocols(httpProtocols, logger); 96HttpsConnectionMiddleware.ConfigureAlpn(sslOptions, httpProtocols); 163HttpsConnectionMiddleware.EnsureCertificateIsAllowedForServerAuth(fallbackCertificate, _logger);
KestrelServer.cs (1)
84public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<HttpsConnectionMiddleware> httpsLogger)
KestrelServerOptions.cs (1)
332var httpsLogger = ApplicationServices.GetRequiredService<ILogger<HttpsConnectionMiddleware>>();
ListenOptionsHttpsExtensions.cs (2)
206var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 273var middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
Middleware\HttpsConnectionMiddleware.cs (19)
34private readonly ILogger<HttpsConnectionMiddleware> _logger; 73_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>(); 136_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>(); 471var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!; 498internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<HttpsConnectionMiddleware> logger) 525internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<HttpsConnectionMiddleware> logger) 564internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger) 614public static partial void AuthenticationFailed(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 617public static partial void AuthenticationTimedOut(this ILogger<HttpsConnectionMiddleware> logger); 620public static partial void HttpsConnectionEstablished(this ILogger<HttpsConnectionMiddleware> logger, string connectionId, SslProtocols protocol); 624public static partial void Http2DefaultCiphersInsufficient(this ILogger<HttpsConnectionMiddleware> logger); 627private static partial void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbPrint); 629public static void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint); 632public static partial void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint, string? storeName); 634public static void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate, StoreLocation storeLocation) 641public static partial void FailedToFindCertificateInStore(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 644public static partial void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, string? storeName, Exception exception); 647public static partial void NoSubjectAlternativeName(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint); 649public static void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, StoreLocation storeLocation, Exception exception)
TlsConfigurationLoader.cs (2)
27private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 32ILogger<HttpsConnectionMiddleware> httpsLogger)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
KestrelServerOptionsTests.cs (1)
86serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>());
KestrelServerTests.cs (3)
303serviceProvider.GetRequiredService<ILogger<HttpsConnectionMiddleware>>()); 793serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 932serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>());
SniOptionsSelectorTests.cs (21)
70logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 127logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 173logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 222logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 285logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 330logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>())); 343logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 378logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 404logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 441logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 484logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 520logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>())); 544logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 572logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 599logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 632logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 662logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 698logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 729logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 759logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 794logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>());