Compartilhar via


MetricsServiceExtensions.AddMetrics Método

Definição

Sobrecargas

AddMetrics(IServiceCollection)

Adiciona serviços de métricas ao especificado IServiceCollection.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Adiciona serviços de métricas ao especificado IServiceCollection.

AddMetrics(IServiceCollection)

Origem:
MetricsServiceExtensions.cs
Origem:
MetricsServiceExtensions.cs
Origem:
MetricsServiceExtensions.cs

Adiciona serviços de métricas ao especificado 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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Origem:
MetricsServiceExtensions.cs
Origem:
MetricsServiceExtensions.cs
Origem:
MetricsServiceExtensions.cs

Adiciona serviços de métricas ao especificado 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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

configure
Action<IMetricsBuilder>

Um retorno de chamada para configurar o IMetricsBuilder.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a