Partager via


ResourceMonitoringBuilderExtensions.ConfigureMonitor Méthode

Définition

Surcharges

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Configure le moniteur de ressources.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Configure le moniteur de ressources.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Source:
ResourceMonitoringBuilderExtensions.cs
Source:
ResourceMonitoringBuilderExtensions.cs

Configure le moniteur de ressources.

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

Paramètres

builder
IResourceMonitorBuilder

Le générateur instance utilisé pour configurer le tracker.

Retours

la valeur de la propriété builder ;

Exceptions

builder ou section a la valeur null.

S’applique à

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Source:
ResourceMonitoringBuilderExtensions.cs
Source:
ResourceMonitoringBuilderExtensions.cs

Configure le moniteur de ressources.

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

Paramètres

builder
IResourceMonitorBuilder

Le générateur instance utilisé pour configurer le tracker.

configure
Action<ResourceMonitoringOptions>

Déléguer pour configurer ResourceMonitoringOptions.

Retours

la valeur de la propriété builder ;

Exceptions

builder ou configure a la valeur null.

S’applique à