2 instantiations of HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (2)
ListenOptionsHttpsExtensions.cs (2)
202
var middleware = new
HttpsConnectionMiddleware
(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics);
269
var middleware = new
HttpsConnectionMiddleware
(next, callbackOptions, loggerFactory, metrics);
40 references to HttpsConnectionMiddleware
Microsoft.AspNetCore.Server.Kestrel.Core (40)
HttpsConfigurationService.cs (7)
27
private Action<FeatureCollection, ListenOptions, ILogger<
HttpsConnectionMiddleware
>>? _populateMultiplexedTransportFeatures;
30
private ILogger<
HttpsConnectionMiddleware
>? _httpsLogger;
60
ILogger<
HttpsConnectionMiddleware
> httpsLogger)
144
internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<
HttpsConnectionMiddleware
> logger)
150
var sslServerAuthenticationOptions =
HttpsConnectionMiddleware
.CreateHttp3Options(listenOptions.HttpsOptions, logger);
245
private readonly ILogger<
HttpsConnectionMiddleware
> _httpsLogger;
250
ILogger<
HttpsConnectionMiddleware
> httpsLogger)
IHttpsConfigurationService.cs (1)
34
ILogger<
HttpsConnectionMiddleware
> httpsLogger);
Internal\SniOptionsSelector.cs (7)
23
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
38
ILogger<
HttpsConnectionMiddleware
> logger)
80
HttpsConnectionMiddleware
.EnsureCertificateIsAllowedForServerAuth(cert2, logger);
90
HttpsConnectionMiddleware
.RemoteCertificateValidationCallback(
95
httpProtocols =
HttpsConnectionMiddleware
.ValidateAndNormalizeHttpProtocols(httpProtocols, logger);
96
HttpsConnectionMiddleware
.ConfigureAlpn(sslOptions, httpProtocols);
163
HttpsConnectionMiddleware
.EnsureCertificateIsAllowedForServerAuth(fallbackCertificate, _logger);
KestrelServer.cs (1)
82
public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<
HttpsConnectionMiddleware
> httpsLogger)
KestrelServerOptions.cs (1)
328
var httpsLogger = ApplicationServices.GetRequiredService<ILogger<
HttpsConnectionMiddleware
>>();
ListenOptionsHttpsExtensions.cs (2)
202
var
middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics);
269
var
middleware = new HttpsConnectionMiddleware(next, callbackOptions, loggerFactory, metrics);
Middleware\HttpsConnectionMiddleware.cs (19)
33
private readonly ILogger<
HttpsConnectionMiddleware
> _logger;
69
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
125
_logger = loggerFactory.CreateLogger<
HttpsConnectionMiddleware
>();
441
var (middleware, context, feature, metricsContext) = (ValueTuple<
HttpsConnectionMiddleware
, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;
468
internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<
HttpsConnectionMiddleware
> logger)
495
internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<
HttpsConnectionMiddleware
> logger)
534
internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<
HttpsConnectionMiddleware
> logger)
584
public static partial void AuthenticationFailed(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
587
public static partial void AuthenticationTimedOut(this ILogger<
HttpsConnectionMiddleware
> logger);
590
public static partial void HttpsConnectionEstablished(this ILogger<
HttpsConnectionMiddleware
> logger, string connectionId, SslProtocols protocol);
594
public static partial void Http2DefaultCiphersInsufficient(this ILogger<
HttpsConnectionMiddleware
> logger);
597
private static partial void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbPrint);
599
public static void LocatingCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint);
602
public static partial void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint, string? storeName);
604
public static void FoundCertWithPrivateKey(this ILogger<
HttpsConnectionMiddleware
> logger, X509Certificate2 certificate, StoreLocation storeLocation)
611
public static partial void FailedToFindCertificateInStore(this ILogger<
HttpsConnectionMiddleware
> logger, Exception exception);
614
public static partial void FailedToOpenStore(this ILogger<
HttpsConnectionMiddleware
> logger, string? storeName, Exception exception);
617
public static partial void NoSubjectAlternativeName(this ILogger<
HttpsConnectionMiddleware
> logger, string thumbprint);
619
public static void FailedToOpenStore(this ILogger<
HttpsConnectionMiddleware
> logger, StoreLocation storeLocation, Exception exception)
TlsConfigurationLoader.cs (2)
27
private readonly ILogger<
HttpsConnectionMiddleware
> _httpsLogger;
32
ILogger<
HttpsConnectionMiddleware
> httpsLogger)