Search

How to use endpoint routing in ASP.NET Core 3.0 MVC - InfoWorld

serongyu.blogspot.com

ASP.NET Core MVC is the .NET Core counterpart of the ASP.NET MVC framework. You can take advantage of ASP.NET Core MVC to build cross-platform, scalable, high-performance web applications and APIs using the Model-View-Controller design pattern. ASP.NET Core takes advantage of routing to map incoming requests to respective controller actions. 

You can learn the basics of routing in ASP.NET Core from my earlier article, “Demystified: Routing in ASP.NET Core.” This article presents a discussion of how we can use endpoint routing in ASP.NET Core 3.0 MVC.

Endpoint routing matches HTTP requests to endpoints early in the middleware pipeline instead of at the end. This allows middleware later in the pipeline to access the resolved endpoint and apply additional processing. In other words, endpoint routing decouples the route matching and endpoint dispatching functions, giving you the flexibility to combine different middleware (MVC, CORS, Razor Pages, Blazor, etc.) in your applications. 

To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t have a copy of it, you can download Visual Studio 2019 here

Create an ASP.NET Core MVC project

Let's block ads! (Why?)



"use" - Google News
May 04, 2020 at 05:01PM
https://ift.tt/2zavzCl

How to use endpoint routing in ASP.NET Core 3.0 MVC - InfoWorld
"use" - Google News
https://ift.tt/2P05tHQ
https://ift.tt/2YCP29R

Bagikan Berita Ini

0 Response to "How to use endpoint routing in ASP.NET Core 3.0 MVC - InfoWorld"

Post a Comment

Powered by Blogger.