官术网_书友最值得收藏!

The Startup class

The Startup class is initialized and executed right after the web application starts. It is located under the project root folder in the Startup.cs file. This is where the application services and request pipeline components can be configured.

The Startup class contains two methods:

  • ConfigureServices: This is where services will be added to the project. For example, this is where logging or authentication services are added.
  • Configure: This is where services and request pipeline components are configured. For example, the settings for the authentication and logging services will be set here.
主站蜘蛛池模板: 邯郸市| 贺州市| 永平县| 织金县| 象山县| 泸水县| 尼木县| 鲜城| 翼城县| 阿瓦提县| 桐柏县| 清镇市| 正蓝旗| 大同县| 徐汇区| 阿鲁科尔沁旗| 胶南市| 兴城市| 娱乐| 大姚县| 新竹县| 鄯善县| 新竹县| 铜川市| 红桥区| 江口县| 临江市| 阿拉尔市| 威远县| 临朐县| 襄垣县| 佛冈县| 泉州市| 股票| 遂昌县| 大同县| 耒阳市| 三河市| 韶关市| 壤塘县| 登封市|