1 write to _context
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\HttpConnection.cs (1)
42
_context
= context;
21 references to _context
Microsoft.AspNetCore.Server.Kestrel.Core (21)
Internal\HttpConnection.cs (21)
43
_timeProvider =
_context
.ServiceContext.TimeProvider;
48
_context
.TimeoutControl ??= _timeoutControl;
51
private KestrelTrace Log =>
_context
.ServiceContext.Log;
59
connectionMetricsTagsFeature =
_context
.ConnectionFeatures.Get<IConnectionMetricsTagsFeature>();
70
requestProcessor = _http1Connection = new Http1Connection<TContext>((HttpConnectionContext)
_context
);
78
requestProcessor = new Http2Connection((HttpConnectionContext)
_context
);
83
requestProcessor = new Http3Connection((HttpMultiplexedConnectionContext)
_context
);
100
var connectionHeartbeatFeature =
_context
.ConnectionFeatures.Get<IConnectionHeartbeatFeature>();
101
var connectionLifetimeNotificationFeature =
_context
.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>();
117
using var closedRegistration =
_context
.ConnectionContext.ConnectionClosed.Register(state => ((HttpConnection)state!).OnConnectionClosed(), this);
129
if (
_context
.MetricsContext.ConnectionEndReason is { } connectionEndReason)
138
if (
_context
.ConnectionContext.Features.Get<IConnectionMetricsTagsFeature>() is { } metricsTags)
215
var hasTls =
_context
.ConnectionFeatures.Get<ITlsConnectionFeature>() != null;
216
var applicationProtocol =
_context
.ConnectionFeatures.Get<ITlsApplicationProtocolFeature>()?.ApplicationProtocol
218
var isMultiplexTransport =
_context
is HttpMultiplexedConnectionContext;
219
var http1Enabled =
_context
.Protocols.HasFlag(HttpProtocols.Http1);
220
var http2Enabled =
_context
.Protocols.HasFlag(HttpProtocols.Http2);
221
var http3Enabled =
_context
.Protocols.HasFlag(HttpProtocols.Http3);
225
if (
_context
.Protocols == HttpProtocols.None)
237
error = $"Protocols {
_context
.Protocols} not supported on multiplexed transport.";
290
Log.ResponseMinimumDataRateNotSatisfied(
_context
.ConnectionId, _http1Connection?.TraceIdentifier);