Partager via


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Méthode

Définition

Surcharges

AddResourceMonitoring(IServiceCollection)

Configure et ajoute une IResourceMonitor implémentation à une collection de services.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Configure et ajoute une IResourceMonitor implémentation à une collection de services.

AddResourceMonitoring(IServiceCollection)

Source:
ResourceMonitoringServiceCollectionExtensions.cs

Configure et ajoute une IResourceMonitor implémentation à une collection de services.

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

Paramètres

services
IServiceCollection

Conteneur d’injection de dépendances à lequel ajouter le moniteur.

Retours

la valeur de la propriété services ;

Exceptions

services a la valeur null.

S’applique à

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Source:
ResourceMonitoringServiceCollectionExtensions.cs

Configure et ajoute une IResourceMonitor implémentation à une collection de services.

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

Paramètres

services
IServiceCollection

Conteneur d’injection de dépendances à lequel ajouter le moniteur.

configure
Action<IResourceMonitorBuilder>

Déléguer pour configurer IResourceMonitorBuilder.

Retours

la valeur de la propriété services ;

Exceptions

services ou configure a la valeur null.

S’applique à