public async Task InvokeAsync(HttpContext httpContext, IHttpHeaderAccessor httpHeaderAccessor) { using (LogContext.PushProperty(HttpHeaderConstants.CorrelationId, httpHeaderAccessor.CorrelationId)) using (LogContext.PushProperty(HttpHeaderConstants.MerchantId, httpHeaderAccessor.MerchantId)) { await this.next(httpContext); } }
public ToDoRepository(ISafeCallService safeCallService, IHttpHeaderAccessor headerAccessor) { this.safeCallService = safeCallService; this.headerAccessor = headerAccessor; }