Compartilhar via


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Método

Definição

Sobrecargas

AddResourceMonitoring(IServiceCollection)

Configura e adiciona uma IResourceMonitor implementação a uma coleção de serviços.

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Configura e adiciona uma IResourceMonitor implementação a uma coleção de serviços.

AddResourceMonitoring(IServiceCollection)

Origem:
ResourceMonitoringServiceCollectionExtensions.cs
Origem:
ResourceMonitoringServiceCollectionExtensions.cs

Configura e adiciona uma IResourceMonitor implementação a uma coleção de serviços.

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

O contêiner de injeção de dependência ao qual adicionar o monitor.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Origem:
ResourceMonitoringServiceCollectionExtensions.cs
Origem:
ResourceMonitoringServiceCollectionExtensions.cs

Configura e adiciona uma IResourceMonitor implementação a uma coleção de serviços.

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

O contêiner de injeção de dependência ao qual adicionar o monitor.

configure
Action<IResourceMonitorBuilder>

Delegar para configurar IResourceMonitorBuilder.

Retornos

O valor de services.

Exceções

O services ou configure é null.

Aplica-se a