public Task InvokeAsync(HttpContext context, HttpContextModel httpContextModel)
        {
            httpContextModel.UserClaims  = context.User?.Claims;
            httpContextModel.Host        = context.Request.Host;
            httpContextModel.Location    = context.Request.Path;
            httpContextModel.Headers     = context.Request.Headers.ToDictionary(x => x.Key, y => y.Value);
            httpContextModel.QueryString = QueryHelpers.ParseQuery(context.Request.QueryString.ToString()).ToDictionary(x => x.Key, y => y.Value);
            httpContextModel.RequestId   = context.TraceIdentifier ?? Guid.NewGuid().ToString("N").ToLowerInvariant();

            // Call the next delegate/middleware in the pipeline
            return(this._next(context));
        }
 public HttpContextEnricher(HttpContextModel model)
 {
     this._model = model;
 }