1 instantiation of MetricsContext
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsMetrics.cs (1)
109return new MetricsContext(_connectionDuration.Enabled, _currentConnectionsCounter.Enabled);
7 references to MetricsContext
Microsoft.AspNetCore.Http.Connections (7)
Internal\HttpConnectionContext.cs (2)
68public HttpConnectionContext(string connectionId, string connectionToken, ILogger logger, MetricsContext metricsContext, 160public MetricsContext MetricsContext { get; }
Internal\HttpConnectionManager.cs (1)
76var metricsContext = _metrics.CreateContext();
Internal\HttpConnectionsMetrics.cs (4)
45public void ConnectionStop(in MetricsContext metricsContext, HttpTransportType transportType, HttpConnectionStopStatus status, long startTimestamp, long currentTimestamp) 56public void ConnectionTransportStart(in MetricsContext metricsContext, HttpTransportType transportType) 67public void TransportStop(in MetricsContext metricsContext, HttpTransportType transportType) 107public MetricsContext CreateContext()