public async Task Invoke(HttpContext httpContext, ICurrentContext currentContext, GlobalSettings globalSettings) { await currentContext.BuildAsync(httpContext, globalSettings); await _next.Invoke(httpContext); }