Partager via


MetricsServiceExtensions.AddMetrics Méthode

Définition

Surcharges

AddMetrics(IServiceCollection)

Ajoute des services de métriques au spécifié IServiceCollection.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Ajoute des services de métriques au spécifié IServiceCollection.

AddMetrics(IServiceCollection)

Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs

Ajoute des services de métriques au spécifié 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs

Ajoute des services de métriques au spécifié 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

configure
Action<IMetricsBuilder>

Rappel pour configurer .IMetricsBuilder

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à