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

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.
主站蜘蛛池模板: 开平市| 杭锦后旗| 阿拉尔市| 玛纳斯县| 勃利县| 曲麻莱县| 九龙城区| 宣汉县| 永新县| 缙云县| 静海县| 收藏| 道孚县| 张家港市| 陵水| 古丈县| 临泉县| 清徐县| 安溪县| 郓城县| 清镇市| 财经| 浦江县| 景德镇市| 阿瓦提县| 花莲市| 昌图县| 抚顺市| 榕江县| 余庆县| 佛教| 深圳市| 长泰县| 奉贤区| 吕梁市| 磐石市| 泾阳县| 凭祥市| 柳州市| 沙河市| 库车县|