Share via


RequestHeadersEnricherExtensions.AddRequestHeadersLogEnricher Method

Definition

Overloads

AddRequestHeadersLogEnricher(IServiceCollection)

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

AddRequestHeadersLogEnricher(IServiceCollection, IConfigurationSection)

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

AddRequestHeadersLogEnricher(IServiceCollection, Action<RequestHeadersLogEnricherOptions>)

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

AddRequestHeadersLogEnricher(IServiceCollection)

Source:
RequestHeadersEnricherExtensions.cs

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestHeadersLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestHeadersLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestHeadersLogEnricher (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add the Request Headers Log Enricher to.

Returns

The IServiceCollection so that additional calls can be chained.

Exceptions

services is null.

Applies to

AddRequestHeadersLogEnricher(IServiceCollection, IConfigurationSection)

Source:
RequestHeadersEnricherExtensions.cs

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestHeadersLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddRequestHeadersLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestHeadersLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add the Request Headers Log Enricher to.

section
IConfigurationSection

The IConfigurationSection to use for configuring RequestHeadersLogEnricherOptions in the Request Headers Log Enricher.

Returns

The IServiceCollection so that additional calls can be chained.

Exceptions

services is null.

Applies to

AddRequestHeadersLogEnricher(IServiceCollection, Action<RequestHeadersLogEnricherOptions>)

Source:
RequestHeadersEnricherExtensions.cs

Adds an instance of Request Headers Log Enricher to the IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestHeadersLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Telemetry.RequestHeadersLogEnricherOptions> configure);
static member AddRequestHeadersLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Telemetry.RequestHeadersLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestHeadersLogEnricher (services As IServiceCollection, configure As Action(Of RequestHeadersLogEnricherOptions)) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add the Request Headers Log Enricher to.

Returns

The IServiceCollection so that additional calls can be chained.

Exceptions

services is null.

Applies to