Middleware component which adds the correlation id to the Serilog LogContext
.
public void Configure(IApplicationBuilder app, ...)
{
app
...
.UseMiddleware<AddCorrelationIdToLogContextMiddleware>()
.UseMiddleware<AddCorrelationIdToResponseMiddleware>()
.UseMiddleware<AddCorrelationIdMiddleware>()
...
}