Udostępnij za pośrednictwem


HostingHostBuilderExtensions.ConfigureMetrics Metoda

Definicja

Przeciążenia

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Dodaje delegata do konfigurowania podanego IMetricsBuilderelementu . Może to być wywoływane wiele razy.

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Dodaje delegata do konfigurowania podanego IMetricsBuilderelementu . Może to być wywoływane wiele razy.

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Źródło:
HostingHostBuilderExtensions.cs
Źródło:
HostingHostBuilderExtensions.cs

Dodaje delegata do konfigurowania podanego IMetricsBuilderelementu . Może to być wywoływane wiele razy.

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

Parametry

hostBuilder
IHostBuilder

Element do skonfigurowania IHostBuilder .

configureMetrics
Action<HostBuilderContext,IMetricsBuilder>

Delegat, który konfiguruje element IMetricsBuilder.

Zwraca

To samo wystąpienie elementu IHostBuilder do tworzenia łańcucha.

Dotyczy

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Źródło:
HostingHostBuilderExtensions.cs
Źródło:
HostingHostBuilderExtensions.cs

Dodaje delegata do konfigurowania podanego IMetricsBuilderelementu . Może to być wywoływane wiele razy.

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

Parametry

hostBuilder
IHostBuilder

Element do skonfigurowania IHostBuilder .

configureMetrics
Action<IMetricsBuilder>

Delegat, który konfiguruje element IMetricsBuilder.

Zwraca

To samo wystąpienie elementu IHostBuilder do tworzenia łańcucha.

Dotyczy