EnrichmentServiceCollectionExtensions.AddStaticLogEnricher Método

Definição

Sobrecargas

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Registra uma instância do enriquecidor de log estático.

AddStaticLogEnricher<T>(IServiceCollection)

Registra um tipo de enriquecidor de log estático.

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Origem:
EnrichmentServiceCollectionExtensions.cs

Registra uma instância do enriquecidor de log estático.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddStaticLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Diagnostics::Enrichment::IStaticLogEnricher ^ enricher);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStaticLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher enricher);
static member AddStaticLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddStaticLogEnricher (services As IServiceCollection, enricher As IStaticLogEnricher) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar a instância do enriquecidor.

enricher
IStaticLogEnricher

A instância do enriquecidor a ser adicionada.

Retornos

O valor de services.

Exceções

services ou enricher é null.

Aplica-se a

AddStaticLogEnricher<T>(IServiceCollection)

Origem:
EnrichmentServiceCollectionExtensions.cs

Registra um tipo de enriquecidor de log estático.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::Enrichment::IStaticLogEnricher[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddStaticLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStaticLogEnricher<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher;
static member AddStaticLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher)
<Extension()>
Public Function AddStaticLogEnricher(Of T As {Class, IStaticLogEnricher}) (services As IServiceCollection) As IServiceCollection

Parâmetros de tipo

T

Tipo de enriquecidor.

Parâmetros

services
IServiceCollection

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

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a