Bagikan melalui


MetricsServiceExtensions.AddMetrics Metode

Definisi

Overload

AddMetrics(IServiceCollection)

Menambahkan layanan metrik ke yang ditentukan IServiceCollection.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Menambahkan layanan metrik ke yang ditentukan IServiceCollection.

AddMetrics(IServiceCollection)

Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs

Menambahkan layanan metrik ke yang ditentukan IServiceCollection.

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

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs
Sumber:
MetricsServiceExtensions.cs

Menambahkan layanan metrik ke yang ditentukan IServiceCollection.

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

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

configure
Action<IMetricsBuilder>

Panggilan balik untuk mengonfigurasi IMetricsBuilder.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk