Bagikan melalui


ResourceMonitoringBuilderExtensions.ConfigureMonitor Metode

Definisi

Overload

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Mengonfigurasi monitor sumber daya.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Mengonfigurasi monitor sumber daya.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Sumber:
ResourceMonitoringBuilderExtensions.cs

Mengonfigurasi monitor sumber daya.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ ConfigureMonitor(Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder ConfigureMonitor (this Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member ConfigureMonitor : Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder
<Extension()>
Public Function ConfigureMonitor (builder As IResourceMonitorBuilder, section As IConfigurationSection) As IResourceMonitorBuilder

Parameter

builder
IResourceMonitorBuilder

Instans penyusun yang digunakan untuk mengonfigurasi pelacak.

section
IConfigurationSection

yang IConfigurationSection digunakan untuk mengonfigurasi ResourceMonitoringOptions.

Mengembalikan

Nilai dari builder.

Pengecualian

Baik builder atau section adalah null.

Berlaku untuk

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Sumber:
ResourceMonitoringBuilderExtensions.cs

Mengonfigurasi monitor sumber daya.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ ConfigureMonitor(Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ builder, Action<Microsoft::Extensions::Diagnostics::ResourceMonitoring::ResourceMonitoringOptions ^> ^ configure);
public static Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder ConfigureMonitor (this Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder builder, Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceMonitoringOptions> configure);
static member ConfigureMonitor : Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder * Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceMonitoringOptions> -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder
<Extension()>
Public Function ConfigureMonitor (builder As IResourceMonitorBuilder, configure As Action(Of ResourceMonitoringOptions)) As IResourceMonitorBuilder

Parameter

builder
IResourceMonitorBuilder

Instans penyusun yang digunakan untuk mengonfigurasi pelacak.

configure
Action<ResourceMonitoringOptions>

Delegasikan untuk mengonfigurasi ResourceMonitoringOptions.

Mengembalikan

Nilai dari builder.

Pengecualian

Baik builder atau configure adalah null.

Berlaku untuk