Partager via


HostingHostBuilderExtensions.ConfigureMetrics Méthode

Définition

Surcharges

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Ajoute un délégué pour configurer le IMetricsBuilder fourni. Peut être appelée plusieurs fois.

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Ajoute un délégué pour configurer le IMetricsBuilder fourni. Peut être appelée plusieurs fois.

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour configurer le IMetricsBuilder fourni. Peut être appelée plusieurs fois.

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

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

configureMetrics
Action<HostBuilderContext,IMetricsBuilder>

Délégué qui configure le IMetricsBuilder.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour configurer le IMetricsBuilder fourni. Peut être appelée plusieurs fois.

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

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

configureMetrics
Action<IMetricsBuilder>

Délégué qui configure le IMetricsBuilder.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à