This project contains all the available services available in Startup class constructor, ConfigureServices
and Configure
methods.
Set your application environment to Development
or Production
or other mode directly from code.
You don't have to call your startup class Startup
. Any valid C# class will do.
Configure so that your web app responds to multiple urls.
This project highlights the fact that you can create multiple Startup classes and choose them at start depending on your needs.
Multiple startups using environment
This project highlights the fact that you can create multiple startup classes and choose them at start depending on your needs depending on your environment (You do have to name the startup class with Startup).
Multiple Configure methods based on environment
This project demonstrates the ability to pick Configure
method in a single Startup class based on environment.
Multiple ConfigureServices methods based on environment
This project demonstrates the ability to pick ConfigureServices
method in a single Startup class based on environment.
Why? just because we can.
Use IStartupFilter
to configure your middleware. This is an advanced topic. This article tries at explaining IStartupFilter
. I will add more samples so IStartupFilter
can be clearer.
Show a detailed report on exceptions that happen during the startup phase of your web app. It is very useful during development.
You can hide status messages when you start up your web application. It's a small useful thing.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。