Share via


ResourceMonitoringBuilderExtensions.ConfigureMonitor Method

Definition

Overloads

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Configures the resource monitor.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Configures the resource monitor.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Source:
ResourceMonitoringBuilderExtensions.cs
Source:
ResourceMonitoringBuilderExtensions.cs

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.

Returns

The value of builder.

Exceptions

Either builder or section is null.

Applies to

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Source:
ResourceMonitoringBuilderExtensions.cs
Source:
ResourceMonitoringBuilderExtensions.cs

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.

Applies to