public async Task InvokeAsync(HttpContext context, Scoped scoped) { scoped.GetIndex(); await next.Invoke(context); }