Leer en inglés

Compartir vía


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Método

Definición

Sobrecargas

AddServiceLogEnricher(IServiceCollection)

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);

Parámetros

services
IServiceCollection

IServiceCollection al que se va a agregar el enriquecidor del servicio.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a

.NET 9 (package-provided) otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);

Parámetros

services
IServiceCollection

IServiceCollection al que se va a agregar el enriquecidor del servicio.

section
IConfigurationSection

IConfigurationSection que se va a usar para configurar ApplicationLogEnricherOptions en el enriquecidor de servicios.

Devoluciones

El valor de services.

Excepciones

Cualquiera de los argumentos es null.

Se aplica a

.NET 9 (package-provided) otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de servicio a IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions> configure);

Parámetros

services
IServiceCollection

IServiceCollection al que se va a agregar el enriquecidor del servicio.

configure
Action<ApplicationLogEnricherOptions>

El delegado de configuración de ApplicationLogEnricherOptions.

Devoluciones

El valor de services.

Excepciones

Cualquiera de los argumentos es null.

Se aplica a

.NET 9 (package-provided) otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)