Udostępnij za pośrednictwem


MetricsServiceExtensions.AddMetrics Metoda

Definicja

Przeciążenia

AddMetrics(IServiceCollection)

Dodaje usługi metryk do określonego IServiceCollectionelementu .

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Dodaje usługi metryk do określonego IServiceCollectionelementu .

AddMetrics(IServiceCollection)

Źródło:
MetricsServiceExtensions.cs
Źródło:
MetricsServiceExtensions.cs
Źródło:
MetricsServiceExtensions.cs

Dodaje usługi metryk do określonego IServiceCollectionelementu .

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddMetrics(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMetrics (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddMetrics : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMetrics (services As IServiceCollection) As IServiceCollection

Parametry

services
IServiceCollection

Element do dodawania IServiceCollection usług.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Źródło:
MetricsServiceExtensions.cs
Źródło:
MetricsServiceExtensions.cs
Źródło:
MetricsServiceExtensions.cs

Dodaje usługi metryk do określonego IServiceCollectionelementu .

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddMetrics(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMetrics (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> configure);
static member AddMetrics : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMetrics (services As IServiceCollection, configure As Action(Of IMetricsBuilder)) As IServiceCollection

Parametry

services
IServiceCollection

Element do dodawania IServiceCollection usług.

configure
Action<IMetricsBuilder>

Wywołanie zwrotne do skonfigurowania elementu IMetricsBuilder.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy