Partilhar via


ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher Método

Definição

Sobrecargas

AddProcessLogEnricher(IServiceCollection)

Adiciona uma instância do enriquecidor de processo ao IServiceCollection.

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Adiciona uma instância do enriquecidor de host ao IServiceCollection.

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Adiciona uma instância do enriquecidor de processo ao IServiceCollection.

AddProcessLogEnricher(IServiceCollection)

Origem:
ProcessEnricherServiceCollectionExtensions.cs
Origem:
ProcessEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de processo ao IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de processo.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Origem:
ProcessEnricherServiceCollectionExtensions.cs
Origem:
ProcessEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de host ao IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de processo.

section
IConfigurationSection

O IConfigurationSection a ser usado para configurar ProcessLogEnricherOptions no enriquecidor de processo.

Retornos

O valor de services.

Exceções

Qualquer um dos argumentos é null.

Aplica-se a

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Origem:
ProcessEnricherServiceCollectionExtensions.cs
Origem:
ProcessEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de processo ao IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ProcessLogEnricherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> configure);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, configure As Action(Of ProcessLogEnricherOptions)) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de processo.

configure
Action<ProcessLogEnricherOptions>

O delegado de configuração do ProcessLogEnricherOptions.

Retornos

O valor de services.

Exceções

Qualquer um dos argumentos é null.

Aplica-se a