Udostępnij za pośrednictwem


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Metoda

Definicja

Przeciążenia

AddResourceMonitoring(IServiceCollection)

Konfiguruje i dodaje implementację IResourceMonitor do kolekcji usług.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Konfiguruje i dodaje implementację IResourceMonitor do kolekcji usług.

AddResourceMonitoring(IServiceCollection)

Źródło:
ResourceMonitoringServiceCollectionExtensions.cs

Konfiguruje i dodaje implementację IResourceMonitor do kolekcji usług.

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

Parametry

services
IServiceCollection

Kontener wstrzykiwania zależności w celu dodania monitora do.

Zwraca

Wartość .services

Wyjątki

services to null.

Dotyczy

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Źródło:
ResourceMonitoringServiceCollectionExtensions.cs

Konfiguruje i dodaje implementację IResourceMonitor do kolekcji usług.

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

Parametry

services
IServiceCollection

Kontener wstrzykiwania zależności w celu dodania monitora do.

configure
Action<IResourceMonitorBuilder>

Delegowanie do skonfigurowania IResourceMonitorBuilder.

Zwraca

Wartość .services

Wyjątki

Albo services lub configure ma wartość null.

Dotyczy