2 instantiations of HttpsConnectionMiddleware
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);
49 references to HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (49)
_generated\0\LoggerMessage.g.cs (9)
1468public static partial void AuthenticationFailed(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, global::System.Exception exception) 1484public static partial void AuthenticationTimedOut(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger) 1500public static partial void HttpsConnectionEstablished(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string connectionId, global::System.Security.Authentication.SslProtocols protocol) 1516public static partial void Http2DefaultCiphersInsufficient(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger) 1532private static partial void LocatingCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string thumbPrint) 1548public static partial void FoundCertWithPrivateKey(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string thumbprint, string? storeName) 1564public static partial void FailedToFindCertificateInStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, global::System.Exception exception) 1580public static partial void FailedToOpenStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string? storeName, global::System.Exception exception) 1596public static partial void NoSubjectAlternativeName(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string thumbprint)
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)