Compartir a través de


ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher Método

Definición

Sobrecargas

AddProcessLogEnricher(IServiceCollection)

Agrega una instancia del enriquecidor de procesos a IServiceCollection.

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Agrega una instancia del enriquecidor de host a IServiceCollection.

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Agrega una instancia del enriquecidor de procesos a IServiceCollection.

AddProcessLogEnricher(IServiceCollection)

Source:
ProcessEnricherServiceCollectionExtensions.cs
Source:
ProcessEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de procesos a 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

IServiceCollection al que se va a agregar el enriquecidor de procesos.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Source:
ProcessEnricherServiceCollectionExtensions.cs
Source:
ProcessEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de host a 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

IServiceCollection al que se va a agregar el enriquecidor de procesos.

section
IConfigurationSection

que IConfigurationSection se va a usar para configurar ProcessLogEnricherOptions en el enriquecidor de procesos.

Devoluciones

El valor de services.

Excepciones

Cualquiera de los argumentos es null.

Se aplica a

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Source:
ProcessEnricherServiceCollectionExtensions.cs
Source:
ProcessEnricherServiceCollectionExtensions.cs

Agrega una instancia del enriquecidor de procesos a 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

IServiceCollection al que se va a agregar el enriquecidor de procesos.

configure
Action<ProcessLogEnricherOptions>

El delegado de configuración de ProcessLogEnricherOptions.

Devoluciones

El valor de services.

Excepciones

Cualquiera de los argumentos es null.

Se aplica a