24 instantiations of KestrelTrace
InMemory.FunctionalTests (3)
Http2\Http2TestBase.cs (1)
610new KestrelTrace(_serviceContext.LoggerFactory),
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
34Log = new KestrelTrace(NullLoggerFactory.Instance),
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
34return new KestrelTrace(loggerFactory);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
84var trace = new KestrelTrace(loggerFactory);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (17)
DateHeaderValueManagerTests.cs (3)
43var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance); 63var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance); 91var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance);
HeartbeatTests.cs (4)
31var kestrelTrace = new KestrelTrace(LoggerFactory); 107var kestrelTrace = new KestrelTrace(LoggerFactory); 150var kestrelTrace = new KestrelTrace(LoggerFactory); 188var kestrelTrace = new KestrelTrace(LoggerFactory);
Http1\Http1ConnectionTests.cs (1)
843_serviceContext.Log = new KestrelTrace(NullLoggerFactory.Instance);
HttpConnectionManagerTests.cs (1)
21var trace = new KestrelTrace(LoggerFactory);
HttpParserTests.cs (2)
19private static readonly KestrelTrace _nullTrace = new KestrelTrace(NullLoggerFactory.Instance); 20private KestrelTrace CreateEnabledTrace() => new KestrelTrace(LoggerFactory);
MessageBodyTests.cs (3)
760using (var input = new TestInput(log: new KestrelTrace(LoggerFactory), timeoutControl: mockTimeoutControl.Object)) 823using (var input = new TestInput(log: new KestrelTrace(LoggerFactory))) 860using (var input = new TestInput(log: new KestrelTrace(LoggerFactory)))
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
34Log = new KestrelTrace(NullLoggerFactory.Instance),
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
34return new KestrelTrace(loggerFactory);
TestHelpers\TestInput.cs (1)
43Log = log ?? new KestrelTrace(NullLoggerFactory.Instance)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
34Log = new KestrelTrace(NullLoggerFactory.Instance),
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
34return new KestrelTrace(loggerFactory);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
34return new KestrelTrace(loggerFactory);
74 references to KestrelTrace
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
src\Servers\Kestrel\shared\test\TestServiceContext.cs (3)
23public TestServiceContext(ILoggerFactory loggerFactory = null, KestrelTrace kestrelTrace = null, bool disableHttp1LineFeedTerminators = true, KestrelMetrics metrics = null) 32private static KestrelTrace CreateLoggingTrace(ILoggerFactory loggerFactory) 51private void Initialize(ILoggerFactory loggerFactory, KestrelTrace kestrelTrace, bool disableHttp1LineFeedTerminators, KestrelMetrics metrics)
Microsoft.AspNetCore.Server.Kestrel.Core (35)
Internal\ConnectionDispatcher.cs (1)
24private KestrelTrace Log => _serviceContext.Log;
Internal\Http\Http1OutputProducer.cs (2)
30private readonly KestrelTrace _log; 76KestrelTrace log,
Internal\Http\HttpProtocol.cs (1)
107protected KestrelTrace Log => ServiceContext.Log;
Internal\Http\MessageBody.cs (1)
46protected KestrelTrace Log => _context.ServiceContext.Log;
Internal\Http2\Http2Connection.cs (1)
211public KestrelTrace Log => _context.ServiceContext.Log;
Internal\Http2\Http2FrameWriter.cs (1)
81private readonly KestrelTrace _log;
Internal\Http2\Http2OutputProducer.cs (1)
27private readonly KestrelTrace _log;
Internal\Http3\Http3Connection.cs (1)
94private KestrelTrace Log => _context.ServiceContext.Log;
Internal\Http3\Http3ControlStream.cs (1)
76public KestrelTrace Log => _context.ServiceContext.Log;
Internal\Http3\Http3FrameWriter.cs (2)
39private readonly KestrelTrace _log; 59public Http3FrameWriter(ConnectionContext connectionContext, ITimeoutControl timeoutControl, MinDataRate? minResponseDataRate, MemoryPool<byte> memoryPool, KestrelTrace log, IStreamIdFeature streamIdFeature, Http3PeerSettings clientPeerSettings, IHttp3Stream http3Stream)
Internal\Http3\Http3OutputProducer.cs (2)
21private readonly KestrelTrace _log; 40KestrelTrace log)
Internal\HttpConnection.cs (1)
51private KestrelTrace Log => _context.ServiceContext.Log;
Internal\Infrastructure\ConnectionManager.cs (3)
15private readonly KestrelTrace _trace; 17public ConnectionManager(KestrelTrace trace, long? upgradedConnectionLimit) 22public ConnectionManager(KestrelTrace trace, ResourceCounter upgradedConnections)
Internal\Infrastructure\Heartbeat.cs (2)
16private readonly KestrelTrace _trace; 21public Heartbeat(IHeartbeatHandler[] callbacks, TimeProvider timeProvider, IDebugger debugger, KestrelTrace trace, TimeSpan interval)
Internal\Infrastructure\KestrelConnection.cs (2)
27KestrelTrace logger, 38protected KestrelTrace Logger { get; }
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
21KestrelTrace logger,
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (2)
21private readonly KestrelTrace _log; 25KestrelTrace log)
Internal\Infrastructure\TransportManager.cs (1)
33private KestrelTrace Trace => _serviceContext.Log;
Internal\KestrelServerImpl.cs (4)
84var trace = new KestrelTrace(loggerFactory); 120private KestrelTrace Trace => ServiceContext.Log; 432private static ConnectionDelegate EnforceConnectionLimit(ConnectionDelegate innerDelegate, long? connectionLimit, KestrelTrace trace, KestrelMetrics metrics) 442private static MultiplexedConnectionDelegate EnforceConnectionLimit(MultiplexedConnectionDelegate innerDelegate, long? connectionLimit, KestrelTrace trace, KestrelMetrics metrics)
Internal\ServiceContext.cs (1)
18public KestrelTrace Log { get; set; } = default!;
Internal\WebTransport\WebTransportStream.cs (1)
23private readonly KestrelTrace _log;
Middleware\ConnectionLimitMiddleware.cs (3)
15private readonly KestrelTrace _trace; 18public ConnectionLimitMiddleware(Func<T, Task> next, long connectionLimit, KestrelTrace trace, KestrelMetrics metrics) 24internal ConnectionLimitMiddleware(Func<T, Task> next, ResourceCounter concurrentConnectionCounter, KestrelTrace trace, KestrelMetrics metrics)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
DateHeaderValueManagerTests.cs (3)
43var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance); 63var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance); 91var testKestrelTrace = new KestrelTrace(NullLoggerFactory.Instance);
HeartbeatTests.cs (4)
31var kestrelTrace = new KestrelTrace(LoggerFactory); 107var kestrelTrace = new KestrelTrace(LoggerFactory); 150var kestrelTrace = new KestrelTrace(LoggerFactory); 188var kestrelTrace = new KestrelTrace(LoggerFactory);
Http1\Http1ConnectionTests.cs (1)
839var previousLog = _serviceContext.Log;
Http1\Http1OutputProducerTests.cs (1)
254public TestHttpOutputProducer(Pipe pipe, string connectionId, ConnectionContext connectionContext, MemoryPool<byte> memoryPool, KestrelTrace log, ITimeoutControl timeoutControl, IHttpMinResponseDataRateFeature minResponseDataRateFeature, ConnectionMetricsContext metricsContext, IHttpOutputAborter outputAborter)
HttpConnectionManagerTests.cs (2)
21var trace = new KestrelTrace(LoggerFactory); 43KestrelTrace trace)
HttpParserTests.cs (3)
19private static readonly KestrelTrace _nullTrace = new KestrelTrace(NullLoggerFactory.Instance); 20private KestrelTrace CreateEnabledTrace() => new KestrelTrace(LoggerFactory); 874private IHttpParser<RequestHandler> CreateParser(KestrelTrace log, bool disableHttp1LineFeedTerminators = true) => new HttpParser<RequestHandler>(log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
src\Servers\Kestrel\shared\test\TestServiceContext.cs (3)
23public TestServiceContext(ILoggerFactory loggerFactory = null, KestrelTrace kestrelTrace = null, bool disableHttp1LineFeedTerminators = true, KestrelMetrics metrics = null) 32private static KestrelTrace CreateLoggingTrace(ILoggerFactory loggerFactory) 51private void Initialize(ILoggerFactory loggerFactory, KestrelTrace kestrelTrace, bool disableHttp1LineFeedTerminators, KestrelMetrics metrics)
TestHelpers\TestInput.cs (1)
25public TestInput(KestrelTrace log = null, ITimeoutControl timeoutControl = null)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
Sockets.BindTests (5)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
src\Servers\Kestrel\shared\test\TestServiceContext.cs (3)
23public TestServiceContext(ILoggerFactory loggerFactory = null, KestrelTrace kestrelTrace = null, bool disableHttp1LineFeedTerminators = true, KestrelMetrics metrics = null) 32private static KestrelTrace CreateLoggingTrace(ILoggerFactory loggerFactory) 51private void Initialize(ILoggerFactory loggerFactory, KestrelTrace kestrelTrace, bool disableHttp1LineFeedTerminators, KestrelMetrics metrics)
Sockets.FunctionalTests (5)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted))))
src\Servers\Kestrel\shared\test\TestServiceContext.cs (3)
23public TestServiceContext(ILoggerFactory loggerFactory = null, KestrelTrace kestrelTrace = null, bool disableHttp1LineFeedTerminators = true, KestrelMetrics metrics = null) 32private static KestrelTrace CreateLoggingTrace(ILoggerFactory loggerFactory) 51private void Initialize(ILoggerFactory loggerFactory, KestrelTrace kestrelTrace, bool disableHttp1LineFeedTerminators, KestrelMetrics metrics)