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

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.
主站蜘蛛池模板: 漯河市| 东安县| 黑龙江省| 招远市| 麻阳| 巴楚县| 白沙| 大兴区| 封开县| 株洲县| 修武县| 安新县| 琼中| 万安县| 金塔县| 右玉县| 岢岚县| 衡南县| 嘉义市| 微山县| 文安县| 宜章县| 朝阳区| 云阳县| 浮梁县| 涿州市| 额济纳旗| 朝阳市| 高州市| 兴隆县| 比如县| 神木县| 巴林右旗| 黔西县| 偃师市| 民和| 黄梅县| 扬州市| 邢台县| 广饶县| 加查县|