Bagikan melalui


HostingHostBuilderExtensions.ConfigureMetrics Metode

Definisi

Overload

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Menambahkan delegasi untuk mengonfigurasi yang disediakan IMetricsBuilder. Ini dapat dipanggil beberapa kali.

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Menambahkan delegasi untuk mengonfigurasi yang disediakan IMetricsBuilder. Ini dapat dipanggil beberapa kali.

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi yang disediakan IMetricsBuilder. Ini dapat dipanggil beberapa kali.

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

Parameter

hostBuilder
IHostBuilder

untuk IHostBuilder mengonfigurasi.

configureMetrics
Action<HostBuilderContext,IMetricsBuilder>

Delegasi yang mengonfigurasi IMetricsBuilder.

Mengembalikan

Instans yang sama untuk penautan IHostBuilder .

Berlaku untuk

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi yang disediakan IMetricsBuilder. Ini dapat dipanggil beberapa kali.

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

Parameter

hostBuilder
IHostBuilder

untuk IHostBuilder mengonfigurasi.

configureMetrics
Action<IMetricsBuilder>

Delegasi yang mengonfigurasi IMetricsBuilder.

Mengembalikan

Instans yang sama untuk penautan IHostBuilder .

Berlaku untuk