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

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.
主站蜘蛛池模板: 泉州市| 文化| 珲春市| 盘锦市| 忻州市| 华亭县| 蒙城县| 玉龙| 亚东县| 奉新县| 京山县| 荆州市| 白朗县| 璧山县| 万源市| 泗洪县| 额济纳旗| 乌拉特后旗| 北宁市| 望江县| 大冶市| 阳泉市| 健康| 拉萨市| 威远县| 紫金县| 衡阳县| 新化县| 东乌珠穆沁旗| 丰台区| 遂宁市| 漾濞| 宣汉县| 临潭县| 德州市| 屏东市| 永定县| 紫阳县| 永春县| 民县| 布拖县|