Condividi tramite


MetricsBuilderConfigurationExtensions.AddConfiguration Metodo

Definizione

Legge la configurazione delle metriche dalla sezione specificata IConfiguration e configura i contatori, gli strumenti e IMetricsListeners abilitati.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ AddConfiguration(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder AddConfiguration (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddConfiguration : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function AddConfiguration (builder As IMetricsBuilder, configuration As IConfiguration) As IMetricsBuilder

Parametri

builder
IMetricsBuilder

Oggetto IMetricsBuilder.

configuration
IConfiguration

Sezione di configurazione da caricare.

Restituisce

IMetricsBuilder Originale per il concatenamento.

Si applica a