ResourceMonitoringBuilderExtensions.ConfigureMonitor Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
Konfiguruje monitor zasobów. |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
Konfiguruje monitor zasobów. |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
Konfiguruje monitor zasobów.
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
Parametry
- builder
- IResourceMonitorBuilder
Wystąpienie konstruktora używane do konfigurowania trackera.
- section
- IConfigurationSection
Element IConfigurationSection do użycia do konfigurowania programu ResourceMonitoringOptions.
Zwraca
Wartość .builder
Wyjątki
Wartość builder
lub section
ma wartość null
.
Dotyczy
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)
Konfiguruje monitor zasobów.
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
Parametry
- builder
- IResourceMonitorBuilder
Wystąpienie konstruktora używane do konfigurowania trackera.
- configure
- Action<ResourceMonitoringOptions>
Delegowanie do skonfigurowania ResourceMonitoringOptions.
Zwraca
Wartość .builder
Wyjątki
Wartość builder
lub configure
ma wartość null
.