ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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)
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>)
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
.