Κοινή χρήση μέσω


HostingHostBuilderExtensions.ConfigureMetrics Method

Definition

Overloads

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Adds a delegate for configuring the provided IMetricsBuilder. This can be called multiple times.

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Adds a delegate for configuring the provided IMetricsBuilder. This can be called multiple times.

ConfigureMetrics(IHostBuilder, Action<HostBuilderContext,IMetricsBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Adds a delegate for configuring the provided IMetricsBuilder. This can be called multiple times.

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

Parameters

hostBuilder
IHostBuilder

The IHostBuilder to configure.

configureMetrics
Action<HostBuilderContext,IMetricsBuilder>

The delegate that configures the IMetricsBuilder.

Returns

The same instance of the IHostBuilder for chaining.

Applies to

ConfigureMetrics(IHostBuilder, Action<IMetricsBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Adds a delegate for configuring the provided IMetricsBuilder. This can be called multiple times.

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

Parameters

hostBuilder
IHostBuilder

The IHostBuilder to configure.

configureMetrics
Action<IMetricsBuilder>

The delegate that configures the IMetricsBuilder.

Returns

The same instance of the IHostBuilder for chaining.

Applies to