5 writes to DiagnosticSource
InMemory.FunctionalTests (4)
BadHttpRequestTests.cs (4)
346
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) {
DiagnosticSource
= diagListener }))
393
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) {
DiagnosticSource
= diagListener }))
459
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) {
DiagnosticSource
= diagListener }))
534
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) {
DiagnosticSource
= diagListener }))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
108
DiagnosticSource
= diagnosticSource,
3 references to DiagnosticSource
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpProtocol.cs (2)
1422
if (ServiceContext.
DiagnosticSource
?.IsEnabled(badRequestEventName) == true)
1424
WriteDiagnosticEvent(ServiceContext.
DiagnosticSource
, badRequestEventName, this);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
WebHostBuilderKestrelExtensionsTests.cs (1)
119
Assert.NotNull(server.ServiceContext.
DiagnosticSource
);