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