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