How could you implement a site-wide "Maintenance mode" for your Asp.Net Core app?
Requirements:
My current best idea is an actionfilter on all controllers, where I check for the maintenance mode in code (bit in a database) and just return the maintenance mode page if maintenance mode is true.
From the Microsoft docs, you can use the standard app_offline.htm mechanism:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.1#app_offlinehtm-2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With