diff --git a/src/Servers/Kestrel/Core/src/KestrelServer.cs b/src/Servers/Kestrel/Core/src/KestrelServer.cs index 3e863d3a3c04..75cec0130767 100644 --- a/src/Servers/Kestrel/Core/src/KestrelServer.cs +++ b/src/Servers/Kestrel/Core/src/KestrelServer.cs @@ -34,7 +34,7 @@ public KestrelServer(IOptions options, IConnectionListener options, new[] { transportFactory ?? throw new ArgumentNullException(nameof(transportFactory)) }, Array.Empty(), - new SimpleHttpsConfigurationService(loggerFactory), + new SimpleHttpsConfigurationService(), loggerFactory, new KestrelMetrics(new DummyMeterFactory())); } @@ -77,13 +77,6 @@ public void Dispose() { } private sealed class SimpleHttpsConfigurationService : IHttpsConfigurationService { - private readonly ILogger _httpsLogger; - - public SimpleHttpsConfigurationService(ILoggerFactory loggerFactory) - { - _httpsLogger = loggerFactory.CreateLogger(); - } - public bool IsInitialized => true; public void Initialize(IHostEnvironment hostEnvironment, ILogger serverLogger, ILogger httpsLogger) @@ -93,7 +86,7 @@ public void Initialize(IHostEnvironment hostEnvironment, ILogger public void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions) { - HttpsConfigurationService.PopulateMultiplexedTransportFeaturesWorker(features, listenOptions, _httpsLogger); + throw new NotImplementedException(); // Not actually required by this impl, which never provides an IMultiplexedConnectionListenerFactory } public ListenOptions UseHttpsWithDefaults(ListenOptions listenOptions)