public async Task Invoke(HttpContext context) { await _pipeline.RunAsync(_pipeline.GetArgs(context)); if (!_pipeline.IsEnded) { await _next(context); } }