Condividi tramite


MetricsServiceExtensions.AddMetrics Metodo

Definizione

Overload

AddMetrics(IServiceCollection)

Aggiunge i servizi delle metriche all'oggetto specificato IServiceCollection.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Aggiunge i servizi delle metriche all'oggetto specificato IServiceCollection.

AddMetrics(IServiceCollection)

Origine:
MetricsServiceExtensions.cs
Origine:
MetricsServiceExtensions.cs
Origine:
MetricsServiceExtensions.cs

Aggiunge i servizi delle metriche all'oggetto specificato 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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Origine:
MetricsServiceExtensions.cs
Origine:
MetricsServiceExtensions.cs
Origine:
MetricsServiceExtensions.cs

Aggiunge i servizi delle metriche all'oggetto specificato 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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

configure
Action<IMetricsBuilder>

Callback per configurare .IMetricsBuilder

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a