Sdílet prostřednictvím


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Metoda

Definice

Přetížení

AddResourceMonitoring(IServiceCollection)

Nakonfiguruje a přidá implementaci IResourceMonitor do kolekce služeb.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Nakonfiguruje a přidá implementaci IResourceMonitor do kolekce služeb.

AddResourceMonitoring(IServiceCollection)

Zdroj:
ResourceMonitoringServiceCollectionExtensions.cs

Nakonfiguruje a přidá implementaci IResourceMonitor do kolekce služeb.

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

Kontejner injektáže závislostí, do které se má monitorování přidat.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Zdroj:
ResourceMonitoringServiceCollectionExtensions.cs

Nakonfiguruje a přidá implementaci IResourceMonitor do kolekce služeb.

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

Kontejner injektáže závislostí, do které se má monitorování přidat.

configure
Action<IResourceMonitorBuilder>

Delegujte konfiguraci IResourceMonitorBuilder.

Návraty

Hodnota .services

Výjimky

Buď services nebo configure je null.

Platí pro