We have a system, which is not public facing, that has to do a bunch of work when it goes down for an update, etc.
During this time, the REST interface can still receive requests and I'm looking for a global solution where any call would not be processed by the regular controllers but just return a unique code (for example a 503). I'd like to avoid something like "if (shutdown) ..." in each controller method :)
Is there a provision for something like this in the asp.net core api?