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

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.
主站蜘蛛池模板: 哈密市| 江西省| 神池县| 吉林省| 明星| 望江县| 萨嘎县| 伊宁县| 阳泉市| 沁水县| 额济纳旗| 左云县| 宜都市| 丹东市| 玉树县| 高密市| 当涂县| 漯河市| 浦县| 喀喇| 全州县| 虞城县| 清镇市| 庆云县| 柳河县| 五家渠市| 华池县| 定陶县| 革吉县| 清原| 城市| 石嘴山市| 新疆| 铁力市| 年辖:市辖区| 翁源县| 赤水市| 方城县| 阿克| 江阴市| 健康|