Compartilhar via


HostingHostBuilderExtensions.ConfigureMetrics Método

Definição

Sobrecargas

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Adiciona um delegado para configurar o IMetricsBuilder fornecido. Isso pode ser chamado várias vezes.

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Adiciona um delegado para configurar o IMetricsBuilder fornecido. Isso pode ser chamado várias vezes.

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

Adiciona um delegado para configurar o IMetricsBuilder fornecido. Isso pode ser chamado várias vezes.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureMetrics(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^> ^ configureMetrics);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureMetrics (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> configureMetrics);
static member ConfigureMetrics : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureMetrics (hostBuilder As IHostBuilder, configureMetrics As Action(Of HostBuilderContext, IMetricsBuilder)) As IHostBuilder

Parâmetros

hostBuilder
IHostBuilder

O IHostBuilder a ser configurado.

configureMetrics
Action<HostBuilderContext,IMetricsBuilder>

O delegado que configura o IMetricsBuilder.

Retornos

A mesma instância do IHostBuilder para encadeamento.

Aplica-se a

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

Adiciona um delegado para configurar o IMetricsBuilder fornecido. Isso pode ser chamado várias vezes.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureMetrics(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^> ^ configureMetrics);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureMetrics (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> configureMetrics);
static member ConfigureMetrics : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureMetrics (hostBuilder As IHostBuilder, configureMetrics As Action(Of IMetricsBuilder)) As IHostBuilder

Parâmetros

hostBuilder
IHostBuilder

O IHostBuilder a ser configurado.

configureMetrics
Action<IMetricsBuilder>

O delegado que configura o IMetricsBuilder.

Retornos

A mesma instância do IHostBuilder para encadeamento.

Aplica-se a