9 instantiations of KestrelServer
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
KestrelServerTests.cs (9)
274new KestrelServer(Options.Create<KestrelServerOptions>(null), new MockTransportFactory(), mockLoggerFactory.Object); 282new KestrelServer( 574var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 632var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 687var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 822var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 960var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 974return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) })); 979return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(throwOnCriticalErrors) }));
48 references to KestrelServer
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
67TrimAssemblyExtension(typeof(Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer).Assembly.Location),
Microsoft.AspNetCore.Server.Kestrel.Core (25)
HttpsConfigurationService.cs (3)
59ILogger<KestrelServer> serverLogger, 244private readonly ILogger<KestrelServer> _serverLogger; 249ILogger<KestrelServer> serverLogger,
IHttpsConfigurationService.cs (1)
33ILogger<KestrelServer> serverLogger,
Internal\Certificates\CertificateConfigLoader.cs (2)
15public CertificateConfigLoader(IHostEnvironment hostEnvironment, ILogger<KestrelServer> logger) 22public ILogger<KestrelServer> Logger { get; }
Internal\LoggerExtensions.cs (11)
16private static partial void LocatedDevelopmentCertificate(this ILogger<KestrelServer> logger, string certificateSubjectName, string certificateThumbprint); 18public static void LocatedDevelopmentCertificate(this ILogger<KestrelServer> logger, X509Certificate2 certificate) => LocatedDevelopmentCertificate(logger, certificate.Subject, certificate.Thumbprint); 21public static partial void UnableToLocateDevelopmentCertificate(this ILogger<KestrelServer> logger); 24public static partial void FailedToLocateDevelopmentCertificateFile(this ILogger<KestrelServer> logger, string certificatePath); 27public static partial void FailedToLoadDevelopmentCertificate(this ILogger<KestrelServer> logger, string certificatePath); 30public static partial void BadDeveloperCertificateState(this ILogger<KestrelServer> logger); 33public static partial void DeveloperCertificateFirstRun(this ILogger<KestrelServer> logger, string message); 36public static partial void FailedToLoadCertificate(this ILogger<KestrelServer> logger, string certificateFilePath); 39public static partial void FailedToLoadCertificateKey(this ILogger<KestrelServer> logger, string certificateKeyFilePath); 42public static partial void DeveloperCertificateNotTrusted(this ILogger<KestrelServer> logger); 45public static partial void DeveloperCertificatePartiallyTrusted(this ILogger<KestrelServer> logger);
KestrelServer.cs (2)
26/// Initializes a new instance of <see cref="KestrelServer"/>. 82public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<HttpsConnectionMiddleware> httpsLogger)
KestrelServerLimits.cs (1)
11/// Limits for <see cref="KestrelServer"/>.
KestrelServerOptions.cs (3)
313var logger = ApplicationServices!.GetRequiredService<ILogger<KestrelServer>>(); 327var logger = ApplicationServices.GetRequiredService<ILogger<KestrelServer>>(); 374private static X509Certificate2? GetDevelopmentCertificateFromStore(ILogger<KestrelServer> logger)
TlsConfigurationLoader.cs (2)
26private readonly ILogger<KestrelServer> _serverLogger; 31ILogger<KestrelServer> serverLogger,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
KestrelEventSourceTests.cs (1)
17var esType = typeof(KestrelServer).Assembly.GetType(
KestrelServerOptionsTests.cs (1)
85serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>());
KestrelServerTests.cs (20)
51using (var server = CreateServer(CreateServerOptions(), testLogger)) 67using (var server = CreateServer(options)) 83using (var server = CreateServer(options, throwOnCriticalErrors: false)) 95using (var server = CreateServer(CreateServerOptions())) 109using (var server = CreateServer(serverOptions)) 122using (var server = CreateServer(new KestrelServerOptions(), testLogger)) 147using (var server = CreateServer(kestrelOptions, testLogger)) 208using (var server = CreateServer(kestrelOptions, testLogger)) 230using (var server = CreateServer(options, testLogger)) 257using (var server = CreateServer(options, testLogger)) 302serviceProvider.GetRequiredService<ILogger<KestrelServer>>(), 574var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 632var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 687var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 790serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>()); 822var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 929serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>()); 960var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object); 972private static KestrelServer CreateServer(KestrelServerOptions options, ILogger testLogger) 977private static KestrelServer CreateServer(KestrelServerOptions options, bool throwOnCriticalErrors = true)