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

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.
主站蜘蛛池模板: 德令哈市| 民勤县| 西乡县| 马关县| 广宗县| 五原县| 靖安县| 嘉鱼县| 来宾市| 金寨县| 姜堰市| 南漳县| 会东县| 健康| 天津市| 札达县| 信阳市| 资源县| 漳浦县| 营口市| 乐亭县| 乌兰县| 马鞍山市| 永德县| 四平市| 礼泉县| 奉贤区| 九江市| 承德县| 麻城市| 芒康县| 松江区| 新昌县| 广元市| 普兰县| 莱州市| 松潘县| 绥德县| 奇台县| 修水县| 丰城市|