Aracılığıyla paylaş


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Yöntem

Tanım

Aşırı Yüklemeler

AddResourceMonitoring(IServiceCollection)

Hizmet koleksiyonuna bir IResourceMonitor uygulama yapılandırıp ekler.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Hizmet koleksiyonuna bir IResourceMonitor uygulama yapılandırıp ekler.

AddResourceMonitoring(IServiceCollection)

Kaynak:
ResourceMonitoringServiceCollectionExtensions.cs
Kaynak:
ResourceMonitoringServiceCollectionExtensions.cs

Hizmet koleksiyonuna bir IResourceMonitor uygulama yapılandırıp ekler.

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

Parametreler

services
IServiceCollection

İzleyicinin ekleneceği bağımlılık ekleme kapsayıcısı.

Döndürülenler

değeri services.

Özel durumlar

services, null değeridir.

Şunlara uygulanır

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Kaynak:
ResourceMonitoringServiceCollectionExtensions.cs
Kaynak:
ResourceMonitoringServiceCollectionExtensions.cs

Hizmet koleksiyonuna bir IResourceMonitor uygulama yapılandırıp ekler.

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

Parametreler

services
IServiceCollection

İzleyicinin ekleneceği bağımlılık ekleme kapsayıcısı.

configure
Action<IResourceMonitorBuilder>

yapılandırmak IResourceMonitorBuilderiçin temsilci seçin.

Döndürülenler

değeri services.

Özel durumlar

veya servicesconfigure şeklindedir null.

Şunlara uygulanır