다음을 통해 공유


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring 메서드

정의

오버로드

AddResourceMonitoring(IServiceCollection)

서비스 컬렉션에 구현을 IResourceMonitor 구성하고 추가합니다.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

서비스 컬렉션에 구현을 IResourceMonitor 구성하고 추가합니다.

AddResourceMonitoring(IServiceCollection)

Source:
ResourceMonitoringServiceCollectionExtensions.cs

서비스 컬렉션에 구현을 IResourceMonitor 구성하고 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddResourceMonitoring(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResourceMonitoring (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddResourceMonitoring : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResourceMonitoring (services As IServiceCollection) As IServiceCollection

매개 변수

services
IServiceCollection

모니터를 추가할 종속성 주입 컨테이너입니다.

반환

services의 값

예외

servicesnull입니다.

적용 대상

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Source:
ResourceMonitoringServiceCollectionExtensions.cs

서비스 컬렉션에 구현을 IResourceMonitor 구성하고 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddResourceMonitoring(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResourceMonitoring (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder> configure);
static member AddResourceMonitoring : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResourceMonitoring (services As IServiceCollection, configure As Action(Of IResourceMonitorBuilder)) As IServiceCollection

매개 변수

services
IServiceCollection

모니터를 추가할 종속성 주입 컨테이너입니다.

configure
Action<IResourceMonitorBuilder>

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

반환

services의 값

예외

services 또는 configurenull인 경우

적용 대상