5 instantiations of HttpConnectionsMetrics
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (4)
1097var metrics = new HttpConnectionsMetrics(testMeterFactory); 1133var metrics = new HttpConnectionsMetrics(testMeterFactory); 3782metrics ?? new HttpConnectionsMetrics(new TestMeterFactory())); 3804return new HttpConnectionDispatcher(manager, loggerFactory, metrics ?? new HttpConnectionsMetrics(new TestMeterFactory()));
HttpConnectionManagerTests.cs (1)
431return new HttpConnectionManager(loggerFactory, lifetime, Options.Create(new ConnectionOptions()), metrics ?? new HttpConnectionsMetrics(new TestMeterFactory()));
16 references to HttpConnectionsMetrics
Microsoft.AspNetCore.Http.Connections (6)
ConnectionsDependencyInjectionExtensions.cs (1)
28services.TryAddSingleton<HttpConnectionsMetrics>();
Internal\HttpConnectionContext.cs (1)
584internal SetTransportState TrySetTransport(HttpTransportType transportType, HttpConnectionsMetrics metrics)
Internal\HttpConnectionDispatcher.cs (2)
44private readonly HttpConnectionsMetrics _metrics; 53public HttpConnectionDispatcher(HttpConnectionManager manager, ILoggerFactory loggerFactory, HttpConnectionsMetrics metrics)
Internal\HttpConnectionManager.cs (2)
28private readonly HttpConnectionsMetrics _metrics; 30public HttpConnectionManager(ILoggerFactory loggerFactory, IHostApplicationLifetime appLifetime, IOptions<ConnectionOptions> connectionOptions, HttpConnectionsMetrics metrics)
Microsoft.AspNetCore.Http.Connections.Tests (10)
HttpConnectionDispatcherTests.cs (9)
1094using var connectionDuration = new MetricCollector<double>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.connection.duration"); 1095using var currentConnections = new MetricCollector<long>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.active_connections"); 1097var metrics = new HttpConnectionsMetrics(testMeterFactory); 1133var metrics = new HttpConnectionsMetrics(testMeterFactory); 1150using var connectionDuration = new MetricCollector<double>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.connection.duration"); 1151using var currentConnections = new MetricCollector<long>(testMeterFactory, HttpConnectionsMetrics.MeterName, "signalr.server.active_connections"); 3769private static HttpConnectionManager CreateConnectionManager(ILoggerFactory loggerFactory, HttpConnectionsMetrics metrics = null) 3774private static HttpConnectionManager CreateConnectionManager(ILoggerFactory loggerFactory, TimeSpan? disconnectTimeout, HttpConnectionsMetrics metrics = null) 3802private static HttpConnectionDispatcher CreateDispatcher(HttpConnectionManager manager, ILoggerFactory loggerFactory, HttpConnectionsMetrics metrics = null)
HttpConnectionManagerTests.cs (1)
428private static HttpConnectionManager CreateConnectionManager(ILoggerFactory loggerFactory, IHostApplicationLifetime lifetime = null, HttpConnectionsMetrics metrics = null)