Condividi tramite


ResourceMonitoringBuilderExtensions.ConfigureMonitor Metodo

Definizione

Overload

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Configura il monitoraggio delle risorse.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Configura il monitoraggio delle risorse.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Origine:
ResourceMonitoringBuilderExtensions.cs

Configura il monitoraggio delle risorse.

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

Parametri

builder
IResourceMonitorBuilder

Istanza del generatore usata per configurare il tracker.

section
IConfigurationSection

Oggetto IConfigurationSection da usare per la configurazione di ResourceMonitoringOptions.

Restituisce

Valore di builder.

Eccezioni

builder o section è null.

Si applica a

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Origine:
ResourceMonitoringBuilderExtensions.cs

Configura il monitoraggio delle risorse.

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

Parametri

builder
IResourceMonitorBuilder

Istanza del generatore usata per configurare il tracker.

configure
Action<ResourceMonitoringOptions>

Delegare per configurare ResourceMonitoringOptions.

Restituisce

Valore di builder.

Eccezioni

builder o configure è null.

Si applica a