ResourceMonitoringBuilderExtensions.ConfigureMonitor Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
Configura o monitor de recursos. |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
Configura o monitor de recursos. |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
Configura o monitor de recursos.
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
Parâmetros
- builder
- IResourceMonitorBuilder
A instância do construtor usada para configurar o rastreador.
- section
- IConfigurationSection
O IConfigurationSection a ser usado para configurar ResourceMonitoringOptions.
Retornos
O valor de builder
.
Exceções
O builder
ou section
é null
.
Aplica-se a
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)
Configura o monitor de recursos.
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
Parâmetros
- builder
- IResourceMonitorBuilder
A instância do construtor usada para configurar o rastreador.
- configure
- Action<ResourceMonitoringOptions>
Delegar para configurar ResourceMonitoringOptions.
Retornos
O valor de builder
.
Exceções
O builder
ou configure
é null
.