public NotFoundMiddleware(RequestDelegate next)
 {
     _next = next.EnsureNotNull(nameof(next));
 }