1 implementation of IConnectionMetricsContextFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelConnection.cs (1)
10internal abstract class KestrelConnection : IConnectionHeartbeatFeature, IConnectionCompleteFeature, IConnectionLifetimeNotificationFeature, IConnectionMetricsContextFeature
7 references to IConnectionMetricsContextFeature
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
30connectionContext.Features.Set<IConnectionMetricsContextFeature>(this);
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);