1 implementation of MetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelConnection.cs (1)
40
public ConnectionMetricsContext
MetricsContext
{ get; set; }
6 references to MetricsContext
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Infrastructure\TransportConnectionManager.cs (1)
82
connection.TransportConnection.Features.Get<IConnectionMetricsContextFeature>()?.
MetricsContext
,
Middleware\ConnectionLimitMiddleware.cs (1)
38
_metrics.ConnectionRejected(connection.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().
MetricsContext
);
Middleware\HttpConnectionMiddleware.cs (1)
32
var metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().
MetricsContext
;
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
33
var metricContext = connectionContext.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().
MetricsContext
;
Middleware\HttpsConnectionMiddleware.cs (2)
158
var metricsContext = context.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().
MetricsContext
;
352
_metrics.TlsHandshakeStart(context.Features.GetRequiredFeature<IConnectionMetricsContextFeature>().
MetricsContext
);