-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
By :

Now that we have built a website that reads and writes to a database, we will return to the website configuration and review how services and the HTTP request pipeline work in more detail.
Endpoint routing is designed to enable better interoperability between frameworks that need routing, such as Razor Pages, MVC, or Web APIs, and middleware that needs to understand how routing affects them, such as localization, authorization, and so on.
Endpoint routing gets its name because it represents the route table as a compiled tree of endpoints that can be walked efficiently by the routing system. One of the biggest improvements is the performance of routing and action method selection.
For more complex scenarios than we have seen so far, endpoint routing can use a pair of calls to the UseRouting
and UseEndpoints
methods:
UseRouting
marks the pipeline...