다음을 통해 공유


ResourceMonitoringBuilderExtensions.ConfigureMonitor 메서드

정의

오버로드

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

리소스 모니터를 구성합니다.

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

리소스 모니터를 구성합니다.

ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)

Source:
ResourceMonitoringBuilderExtensions.cs

리소스 모니터를 구성합니다.

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

매개 변수

builder
IResourceMonitorBuilder

작성기 instance 추적기를 구성하는 데 사용됩니다.

반환

builder의 값

예외

builder 또는 sectionnull인 경우

적용 대상

ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)

Source:
ResourceMonitoringBuilderExtensions.cs

리소스 모니터를 구성합니다.

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

매개 변수

builder
IResourceMonitorBuilder

작성기 instance 추적기를 구성하는 데 사용됩니다.

configure
Action<ResourceMonitoringOptions>

를 구성 ResourceMonitoringOptions하도록 위임합니다.

반환

builder의 값

예외

builder 또는 configurenull인 경우

적용 대상