RequestHeadersEnricherExtensions.AddRequestHeadersLogEnricher Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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>)
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.
- configure
- Action<RequestHeadersLogEnricherOptions>
The RequestHeadersLogEnricherOptions configuration delegate.
Returns
The IServiceCollection so that additional calls can be chained.
Exceptions
services
is null
.