ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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)
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>)
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
.