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

Routing

Routing in ASP.NET Core is the process of mapping incoming requests to application logic that resides in controllers and methods.

ASP.NET Core maps the incoming request based on the routes that you configure in your application, and for each route, you can set specific configurations, such as default values, message handlers, constraints, and so on. 

There are a few ways of controlling the routing in an ASP.NET Core application, but in this chapter, we will concentrate on the two most common ways:

  • Conventional routing: The route is determined based on conventions that are defined in route templates that, at runtime, will map requests to controllers and actions (methods).
  • Attribute-based routing: The route is determined based on attributes that you set on your controllers and methods. These will define the mapping to the controller's actions.
主站蜘蛛池模板: 平谷区| 孙吴县| 宜黄县| 常山县| 沅陵县| 柳林县| 扎囊县| 阿瓦提县| 中江县| 榆社县| 容城县| 鱼台县| 新泰市| 枞阳县| 东乌珠穆沁旗| 收藏| 麦盖提县| 韶山市| 淳安县| 赞皇县| 吕梁市| 冕宁县| 奈曼旗| 襄樊市| 海盐县| 安丘市| 阳新县| 贵德县| 廉江市| 大安市| 祁连县| 会同县| 策勒县| 鄂托克旗| 安吉县| 根河市| 尚义县| 高州市| 淮北市| 福州市| 扎鲁特旗|