[ASP.NET Core MVC Pipeline] Routing Middleware — Route Handler

Middleware Pipeline
Middleware Pipeline
Let's Code
Let’s Code
private static RequestDelegate CustomRouteHandler()
return async (c) =>
await Task.Run(() => c.Response.Redirect("http://azurecoder.net"));
app.UseMvc(routes =>
routes.MapRoute("blog/{*path}", CustomRouteHandler());

// Main Route
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
That's All Folks
That’s All Folks



Software Development and everything that encircles it :)

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store