ResourceMonitoringBuilderExtensions.ConfigureMonitor Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
Configura il monitoraggio delle risorse. |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
Configura il monitoraggio delle risorse. |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
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>)
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
.