Condividi tramite


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Metodo

Definizione

Overload

AddResourceMonitoring(IServiceCollection)

Configura e aggiunge un'implementazione IResourceMonitor a una raccolta di servizi.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Configura e aggiunge un'implementazione IResourceMonitor a una raccolta di servizi.

AddResourceMonitoring(IServiceCollection)

Origine:
ResourceMonitoringServiceCollectionExtensions.cs

Configura e aggiunge un'implementazione IResourceMonitor a una raccolta di servizi.

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

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere il monitoraggio.

Restituisce

Valore di services.

Eccezioni

services è null.

Si applica a

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Origine:
ResourceMonitoringServiceCollectionExtensions.cs

Configura e aggiunge un'implementazione IResourceMonitor a una raccolta di servizi.

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

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere il monitoraggio.

configure
Action<IResourceMonitorBuilder>

Delegare per configurare IResourceMonitorBuilder.

Restituisce

Valore di services.

Eccezioni

services o configure è null.

Si applica a