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

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.
主站蜘蛛池模板: 玉屏| 开江县| 清徐县| 青海省| 古丈县| 隆回县| 张家港市| 瑞丽市| 苍溪县| 苏州市| 崇左市| 饶阳县| 济阳县| 道孚县| 伽师县| 大英县| 凤台县| 逊克县| 嵊泗县| 如皋市| 东源县| 绥化市| 临湘市| 介休市| 玛多县| 宁国市| 丹凤县| 宝坻区| 阿拉善右旗| 烟台市| 长海县| 浦江县| 海宁市| 宁化县| 沛县| 凭祥市| 江门市| 桐梓县| 古丈县| 潮州市| 乌兰察布市|