MetricsServiceExtensions.AddMetrics Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.