Partilhar via


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Método

Definição

Sobrecargas

AddServiceLogEnricher(IServiceCollection)

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Origem:
ApplicationEnricherServiceCollectionExtensions.cs
Origem:
ApplicationEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de serviço.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Origem:
ApplicationEnricherServiceCollectionExtensions.cs
Origem:
ApplicationEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de serviço.

section
IConfigurationSection

O IConfigurationSection a ser usado para configurar ApplicationLogEnricherOptions no enriquecidor de serviço.

Retornos

O valor de services.

Exceções

Qualquer um dos argumentos é null.

Aplica-se a

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Origem:
ApplicationEnricherServiceCollectionExtensions.cs
Origem:
ApplicationEnricherServiceCollectionExtensions.cs

Adiciona uma instância do enriquecidor de serviço ao IServiceCollection.

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o enriquecidor de serviço.

configure
Action<ApplicationLogEnricherOptions>

O delegado de configuração do ApplicationLogEnricherOptions.

Retornos

O valor de services.

Exceções

Qualquer um dos argumentos é null.

Aplica-se a