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