Freigeben über


ResourceMonitoringBuilderExtensions.ConfigureMonitor Methode

Definition

Überlädt

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Konfiguriert den Ressourcenmonitor.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Konfiguriert den Ressourcenmonitor.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Quelle:
ResourceMonitoringBuilderExtensions.cs

Konfiguriert den Ressourcenmonitor.

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

Der Generator instance zum Konfigurieren des Trackers verwendet.

section
IConfigurationSection

Die , die IConfigurationSection zum Konfigurieren von verwendet werden ResourceMonitoringOptionssoll.

Gibt zurück

Der Wert von builder.

Ausnahmen

Entweder builder oder section ist null.

Gilt für:

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Quelle:
ResourceMonitoringBuilderExtensions.cs

Konfiguriert den Ressourcenmonitor.

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

Der Generator instance zum Konfigurieren des Trackers verwendet.

configure
Action<ResourceMonitoringOptions>

Delegieren zum Konfigurieren ResourceMonitoringOptionsvon .

Gibt zurück

Der Wert von builder.

Ausnahmen

Entweder builder oder configure ist null.

Gilt für: