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