Exemplo n.º 1
0
 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);
         }
 }
Exemplo n.º 2
0
 public ToDoRepository(ISafeCallService safeCallService, IHttpHeaderAccessor headerAccessor)
 {
     this.safeCallService = safeCallService;
     this.headerAccessor  = headerAccessor;
 }