Check conditions on startup
问题 I would like to test certain conditions on Startup of my ASP.Net Core 2.0 application. For example if my database server or other is running correctly. This is especially helpful for things that will only be instantiated after a request (like my repository). Currently I have to do this request manually, but I would like to have my application fail early. At what moment and in what place is such a test recommended? 回答1: The Startup class is responsible for setting up your server, making it the