Table of Contents

UseCorrelationIdentifier Method

Definition

UseCorrelationIdentifier(IApplicationBuilder, Action<CorrelationIdentifierOptions>)

Adds a correlation identifier HTTP header to the IApplicationBuilder request execution pipeline.

public static IApplicationBuilder UseCorrelationIdentifier(this IApplicationBuilder builder, Action<CorrelationIdentifierOptions> setup = null)

Parameters

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<CorrelationIdentifierOptions>

The CorrelationIdentifierOptions middleware which may be configured.

Returns

IApplicationBuilder

An IApplicationBuilder that can be used to further configure the request pipeline.

Remarks

Default HTTP header name is X-Correlation-ID.