Aracılığıyla paylaş


MetricsServiceExtensions.AddMetrics Yöntem

Tanım

Aşırı Yüklemeler

AddMetrics(IServiceCollection)

Belirtilen IServiceCollectionöğesine ölçüm hizmetleri ekler.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Belirtilen IServiceCollectionöğesine ölçüm hizmetleri ekler.

AddMetrics(IServiceCollection)

Kaynak:
MetricsServiceExtensions.cs
Kaynak:
MetricsServiceExtensions.cs

Belirtilen IServiceCollectionöğesine ölçüm hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklenecek.

Döndürülenler

IServiceCollection ek çağrıların zincirlenebilmesi için.

Şunlara uygulanır

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Kaynak:
MetricsServiceExtensions.cs
Kaynak:
MetricsServiceExtensions.cs

Belirtilen IServiceCollectionöğesine ölçüm hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklenecek.

configure
Action<IMetricsBuilder>

öğesini yapılandırmak IMetricsBuilderiçin bir geri çağırma.

Döndürülenler

IServiceCollection ek çağrıların zincirlenebilmesi için.

Şunlara uygulanır