ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring メソッド

定義

オーバーロード

AddResourceMonitoring(IServiceCollection)

実装を構成し、サービス コレクションに追加 IResourceMonitor します。

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

実装を構成し、サービス コレクションに追加 IResourceMonitor します。

AddResourceMonitoring(IServiceCollection)

ソース:
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>)

ソース:
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 または configure のいずれかが null です。

適用対象