public override async Task Invoke(HttpContext context) { try { await base.Invoke(context); } catch (Exception ex) { _logger.Exception(ex); } }