17 references to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
520
readerScheduler: context.
ServiceContext
.Scheduler,
Internal\Http\Http1Connection.cs (3)
54
_parser =
ServiceContext
.HttpParser;
87
ServiceContext
.Metrics.RequestUpgradedStop(MetricsContext);
89
ServiceContext
.ConnectionManager.UpgradedConnectionCount.ReleaseOne();
Internal\Http\HttpProtocol.cs (6)
91
ServerOptions =
ServiceContext
.ServerOptions;
108
protected KestrelTrace Log =>
ServiceContext
.Log;
109
private DateHeaderValueManager DateHeaderValueManager =>
ServiceContext
.DateHeaderValueManager;
511
ServiceContext
.Scheduler.Schedule(state => ((HttpProtocol)state!).CancelRequestAbortedTokenCallback(), this);
1413
if (
ServiceContext
.DiagnosticSource?.IsEnabled(badRequestEventName) == true)
1415
WriteDiagnosticEvent(
ServiceContext
.DiagnosticSource, badRequestEventName, this);
Internal\Http\HttpProtocol.FeatureCollection.cs (2)
271
if (!
ServiceContext
.ConnectionManager.UpgradedConnectionCount.TryLockOne())
279
ServiceContext
.Metrics.RequestUpgradedStart(_context.MetricsContext);
Internal\Http\MessageBody.cs (1)
46
protected KestrelTrace Log => _context.
ServiceContext
.Log;
Internal\Http2\Http2Stream.cs (1)
650
readerScheduler:
ServiceContext
.Scheduler,
Internal\Http2\Http2StreamOfT.cs (1)
24
ServiceContext
.Metrics.RequestQueuedStop(MetricsContext, KestrelMetrics.Http2);
Internal\Http3\Http3Stream.cs (1)
1186
readerScheduler:
ServiceContext
.Scheduler,
Internal\Http3\Http3StreamOfT.cs (1)
23
ServiceContext
.Metrics.RequestQueuedStop(MetricsContext, KestrelMetrics.Http3);