How to restart asp.net core application in controller method?

There is an application that reads the configuration from the database at startup. The administrator enters the new settings of the application, saves them in the database and indicates when the application should be restarted to accept the new settings (or immediately restarts). How to crank it if the application works in iis?

  • Just wondering - what are these settings require restarting the application? - tym32167
  • @ tym32167 Identity Server Client Configuration - mirypoko
  • Accepted I didn’t work with it, but it was interesting to read, thanks - tym32167
  • Make Environment.Exit and next. request to your service should raise it. At least, for debugging purposes, it works for me stably. - Monk
  • one

0