17 implementations of IMeterFactory
InMemory.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Interop.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Diagnostics (1)
DummyMeterFactory.cs (1)
8internal sealed class DummyMeterFactory : IMeterFactory
Microsoft.AspNetCore.Diagnostics.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.RateLimiting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Routing.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelServer.cs (1)
71private sealed class DummyMeterFactory : IMeterFactory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Microsoft.Extensions.Diagnostics (1)
Metrics\DefaultMeterFactory.cs (1)
12internal sealed class DefaultMeterFactory : IMeterFactory
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Helpers\TestMeterFactory.cs (1)
10internal class TestMeterFactory : IMeterFactory
Sockets.BindTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
Sockets.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
9internal sealed class TestMeterFactory : IMeterFactory
88 references to IMeterFactory
Aspire.Confluent.Kafka (1)
ConfluentKafkaMetrics.cs (1)
26public ConfluentKafkaMetrics(IMeterFactory meterFactory)
Aspire.Confluent.Kafka.Tests (4)
MetricsTests.cs (4)
46IMeterFactory meterFactory = host.Services.GetRequiredService<IMeterFactory>(); 163IMeterFactory meterFactory = host.Services.GetRequiredService<IMeterFactory>();
InMemory.FunctionalTests (4)
ConnectionLimitTests.cs (2)
226private TestServer CreateServerWithMaxConnections(RequestDelegate app, long max, IMeterFactory meterFactory = null) 233private TestServer CreateServerWithMaxConnections(RequestDelegate app, ResourceCounter concurrentConnectionCounter, IMeterFactory meterFactory = null)
MaxRequestLineSizeTests.cs (1)
83private TestServer CreateServer(int maxRequestLineSize, IMeterFactory meterFactory)
RequestHeaderLimitsTests.cs (1)
161private TestServer CreateServer(int? maxRequestHeaderCount = null, int? maxRequestHeadersTotalSize = null, IMeterFactory meterFactory = null)
Interop.FunctionalTests (6)
Http2\Http2RequestTests.cs (4)
40var meterFactory = host.Services.GetRequiredService<IMeterFactory>(); 118var meterFactory = host.Services.GetRequiredService<IMeterFactory>();
Http3\Http3RequestTests.cs (2)
81var meterFactory = host.Services.GetRequiredService<IMeterFactory>();
Microsoft.AspNetCore.Diagnostics (5)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
52IMeterFactory meterFactory,
DiagnosticsMetrics.cs (1)
20public DiagnosticsMetrics(IMeterFactory meterFactory)
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
121var meterFactory = app.ApplicationServices.GetRequiredService<IMeterFactory>();
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
39IMeterFactory meterFactory,
Microsoft.AspNetCore.Diagnostics.Tests (7)
DeveloperExceptionPageMiddlewareTest.cs (1)
584s.AddSingleton<IMeterFactory>(meterFactory);
ExceptionHandlerMiddlewareTest.cs (3)
311s.AddSingleton<IMeterFactory>(meterFactory); 374s.AddSingleton<IMeterFactory>(meterFactory); 509IMeterFactory meterFactory = null)
ExceptionHandlerTest.cs (3)
1000s.AddSingleton<IMeterFactory>(meterFactory); 1054s.AddSingleton<IMeterFactory>(meterFactory); 1124s.AddSingleton<IMeterFactory>(meterFactory);
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingMetrics.cs (1)
12public HeaderParsingMetrics(IMeterFactory meterFactory)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingFeatureTests.cs (1)
217var meterFactoryMock = new Mock<IMeterFactory>();
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
20public HostingMetrics(IMeterFactory meterFactory)
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (1)
1091Action<DefaultHttpContext> configure = null, HostingEventSource eventSource = null, IMeterFactory meterFactory = null)
HostingApplicationTests.cs (1)
181ActivitySource activitySource = null, IMeterFactory meterFactory = null)
HostingMetricsTests.cs (1)
187ActivitySource activitySource = null, IMeterFactory meterFactory = null, RequestDelegate requestDelegate = null)
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsMetrics.cs (1)
29public HttpConnectionsMetrics(IMeterFactory meterFactory)
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMetrics.cs (1)
22public RateLimitingMetrics(IMeterFactory meterFactory)
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMetricsTests.cs (1)
335private RateLimitingMiddleware CreateTestRateLimitingMiddleware(IOptions<RateLimiterOptions> options, ILogger<RateLimitingMiddleware> logger = null, IServiceProvider serviceProvider = null, IMeterFactory meterFactory = null, RequestDelegate next = null)
Microsoft.AspNetCore.Routing (1)
RoutingMetrics.cs (1)
19public RoutingMetrics(IMeterFactory meterFactory)
Microsoft.AspNetCore.Routing.Tests (1)
RoutingMetricsTests.cs (1)
154IMeterFactory meterFactory = null,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
38public KestrelMetrics(IMeterFactory meterFactory)
Microsoft.Extensions.Diagnostics (5)
Metrics\ListenerSubscription.cs (3)
15private readonly IMeterFactory _meterFactory; 21internal ListenerSubscription(IMetricsListener metricsListener, IMeterFactory meterFactory) 145internal static bool RuleMatches(InstrumentRule rule, Instrument instrument, string listenerName, IMeterFactory meterFactory)
Metrics\MetricsServiceExtensions.cs (1)
32services.TryAddSingleton<IMeterFactory, DefaultMeterFactory>();
Metrics\MetricsSubscriptionManager.cs (1)
18public MetricsSubscriptionManager(IEnumerable<IMetricsListener> listeners, IOptionsMonitor<MetricsOptions> options, IMeterFactory meterFactory)
Microsoft.Extensions.Diagnostics.Abstractions (3)
Metrics\InstrumentRule.cs (1)
56/// and those created via Dependency Injection with <see cref="IMeterFactory.Create(MeterOptions)"/> (<see cref="MeterScope.Local"/>).
Metrics\MeterScope.cs (2)
11/// and those created via Dependency Injection with <see cref="IMeterFactory.Create(MeterOptions)"/> (<see cref="Local"/>). 27/// Indicates <see cref="Meter"/> instances created via Dependency Injection with <see cref="IMeterFactory.Create(MeterOptions)"/>.
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
HealthCheckMetrics.cs (1)
10public HealthCheckMetrics(IMeterFactory meterFactory)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
171var meterFactoryMock = new Mock<IMeterFactory>();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (7)
Linux\LinuxUtilizationProvider.cs (1)
40IMeterFactory meterFactory, ILogger<LinuxUtilizationProvider>? logger = null, TimeProvider? timeProvider = null)
Linux\Network\LinuxNetworkMetrics.cs (1)
14public LinuxNetworkMetrics(IMeterFactory meterFactory, ITcpStateInfoProvider tcpStateInfoProvider)
Windows\Network\WindowsNetworkMetrics.cs (1)
14public WindowsNetworkMetrics(IMeterFactory meterFactory, ITcpStateInfoProvider tcpStateInfoProvider)
Windows\WindowsContainerSnapshotProvider.cs (2)
50IMeterFactory meterFactory, 67IMeterFactory meterFactory,
Windows\WindowsSnapshotProvider.cs (2)
39public WindowsSnapshotProvider(ILogger<WindowsSnapshotProvider>? logger, IMeterFactory meterFactory, IOptions<ResourceMonitoringOptions> options) 47IMeterFactory meterFactory,
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (16)
Linux\AcceptanceTest.cs (2)
236meterScope = host.Services.GetRequiredService<IMeterFactory>(); 320meterScope = host.Services.GetRequiredService<IMeterFactory>();
Linux\LinuxCountersTests.cs (1)
81var meterFactoryMock = new Mock<IMeterFactory>();
Linux\LinuxUtilizationProviderTests.cs (3)
33var meterFactoryMock = new Mock<IMeterFactory>(); 103var meterFactoryMock = new Mock<IMeterFactory>(); 171var meterFactoryMock = new Mock<IMeterFactory>();
Windows\WindowsContainerSnapshotProviderTests.cs (4)
28private readonly Mock<IMeterFactory> _meterFactory; 43_meterFactory = new Mock<IMeterFactory>(); 214var meterFactoryMock = new Mock<IMeterFactory>(); 277var meterFactoryMock = new Mock<IMeterFactory>();
Windows\WindowsCountersTests.cs (2)
31var meterFactoryMock = new Mock<IMeterFactory>(); 73var meterFactoryMock = new Mock<IMeterFactory>();
Windows\WindowsSnapshotProviderTests.cs (4)
27private readonly Mock<IMeterFactory> _meterFactoryMock; 35_meterFactoryMock = new Mock<IMeterFactory>(); 81var meterFactoryMock = new Mock<IMeterFactory>(); 116var meterFactoryMock = new Mock<IMeterFactory>();
Microsoft.Extensions.Http (2)
MetricsFactoryHttpMessageHandlerFilter.cs (2)
13private readonly IMeterFactory _meterFactory; 15public MetricsFactoryHttpMessageHandlerFilter(IMeterFactory meterFactory)
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
609.ConfigureServices(s => s.AddSingleton<IMeterFactory>(testMeterFactory)); 703.ConfigureServices(s => s.AddSingleton<IMeterFactory>(testMeterFactory));
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
9public class GaugeMetrics(ILogger<GaugeMetrics> logger, IMeterFactory meterFactory) : BackgroundService
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\MeterFactoryExtensions.cs (3)
10/// Extension methods for <see cref="Meter" /> and <see cref="IMeterFactory" />. 17/// <param name="meterFactory">The <see cref="IMeterFactory" /> to use to create the <see cref="Meter" />.</param> 22public static Meter Create(this IMeterFactory meterFactory, string name, string? version = null, IEnumerable<KeyValuePair<string, object?>>? tags = null)
System.Net.Http (8)
System\Net\Http\HttpClientHandler.cs (3)
92/// Gets or sets the <see cref="IMeterFactory"/> to create a custom <see cref="Meter"/> for the <see cref="HttpClientHandler"/> instance. 96/// will be recorded using the <see cref="Meter"/> provided by the <see cref="IMeterFactory"/>. 99public IMeterFactory? MeterFactory
System\Net\Http\Metrics\MetricsHandler.cs (1)
18public MetricsHandler(HttpMessageHandler innerHandler, IMeterFactory? meterFactory, out Meter meter)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (1)
42internal IMeterFactory? _meterFactory;
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (3)
475/// Gets or sets the <see cref="IMeterFactory"/> to create a custom <see cref="Meter"/> for the <see cref="SocketsHttpHandler"/> instance. 479/// will be recorded using the <see cref="Meter"/> provided by the <see cref="IMeterFactory"/>. 482public IMeterFactory? MeterFactory