Partager via


ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher Method

Definition

Overloads

AddProcessLogEnricher(IServiceCollection)

Adds an instance of the process enricher to the IServiceCollection.

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Adds an instance of the host enricher to the IServiceCollection.

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Adds an instance of the process enricher to the IServiceCollection.

AddProcessLogEnricher(IServiceCollection)

Source:
ProcessEnricherServiceCollectionExtensions.cs

Adds an instance of the process enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the process enricher to.

Returns

The value of services.

Exceptions

services is null.

Applies to

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

Source:
ProcessEnricherServiceCollectionExtensions.cs

Adds an instance of the host enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the process enricher to.

section
IConfigurationSection

The IConfigurationSection to use for configuring ProcessLogEnricherOptions in the process enricher.

Returns

The value of services.

Exceptions

Any of the arguments is null.

Applies to

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

Source:
ProcessEnricherServiceCollectionExtensions.cs

Adds an instance of the process enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the process enricher to.

configure
Action<ProcessLogEnricherOptions>

The ProcessLogEnricherOptions configuration delegate.

Returns

The value of services.

Exceptions

Any of the arguments is null.

Applies to