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

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.
主站蜘蛛池模板: 缙云县| 龙井市| 乌恰县| 东乡族自治县| 永兴县| 惠州市| 绵竹市| 大庆市| 大渡口区| 金山区| 衡东县| 广宗县| 瑞昌市| 威宁| 迭部县| 泾源县| 东丰县| 类乌齐县| 彰化市| 青神县| 隆昌县| 红安县| 房山区| 景泰县| 健康| 万山特区| 当阳市| 安图县| 蓬安县| 高平市| 沧州市| 夹江县| 广灵县| 龙游县| 信阳市| 汾阳市| 兴山县| 黎川县| 贵港市| 江油市| 泗洪县|