Compartir a través de


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Método

Definición

Sobrecargas

AddResourceMonitoring(IServiceCollection)

Configura y agrega una IResourceMonitor implementación a una colección de servicios.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Configura y agrega una IResourceMonitor implementación a una colección de servicios.

AddResourceMonitoring(IServiceCollection)

Source:
ResourceMonitoringServiceCollectionExtensions.cs
Source:
ResourceMonitoringServiceCollectionExtensions.cs

Configura y agrega una IResourceMonitor implementación a una colección de servicios.

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

Parámetros

services
IServiceCollection

Contenedor de inserción de dependencias al que se va a agregar el monitor.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Source:
ResourceMonitoringServiceCollectionExtensions.cs
Source:
ResourceMonitoringServiceCollectionExtensions.cs

Configura y agrega una IResourceMonitor implementación a una colección de servicios.

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

Parámetros

services
IServiceCollection

Contenedor de inserción de dependencias al que se va a agregar el monitor.

configure
Action<IResourceMonitorBuilder>

Delegue para configurar IResourceMonitorBuilder.

Devoluciones

El valor de services.

Excepciones

services o configure es null.

Se aplica a