ResourceMonitoringBuilderExtensions.ConfigureMonitor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
Configures the resource monitor. |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
Configures the resource monitor. |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
Configures the resource monitor.
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
Parameters
- builder
- IResourceMonitorBuilder
The builder instance used to configure the tracker.
- section
- IConfigurationSection
The IConfigurationSection to use for configuring ResourceMonitoringOptions.
Returns
The value of builder
.
Exceptions
Either builder
or section
is null
.
Applies to
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)
Configures the resource monitor.
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
Parameters
- builder
- IResourceMonitorBuilder
The builder instance used to configure the tracker.
- configure
- Action<ResourceMonitoringOptions>
Delegate to configure ResourceMonitoringOptions.
Returns
The value of builder
.
Exceptions
Either builder
or configure
is null
.