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