7 references to Services
Microsoft.Extensions.Diagnostics (3)
Metrics\Configuration\MetricsBuilderConfigurationExtensions.cs (3)
37builder.Services.AddSingleton<IConfigureOptions<MetricsOptions>>(new MetricsConfigureOptions(configuration)); 38builder.Services.AddSingleton<IOptionsChangeTokenSource<MetricsOptions>>(new ConfigurationChangeTokenSource<MetricsOptions>(configuration)); 39builder.Services.AddSingleton(new MetricsConfiguration(configuration));
Microsoft.Extensions.Diagnostics.Abstractions (4)
Metrics\MetricsBuilderExtensions.Listeners.cs (3)
25builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IMetricsListener, T>()); 38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton(listener)); 50builder.Services.RemoveAll<IMetricsListener>();
Metrics\MetricsBuilderExtensions.Rules.cs (1)
106builder.Services.Configure(configureOptions);