Back to Practical Aspnetcore

WebApplication - middleware pipeline 2

projects/minimal-hosting/web-application-middleware-pipeline-2/README.md

latest306 B
Original Source

WebApplication - middleware pipeline 2

This sample uses the brand new WebApplication hosting class.

In this example we use EndpointRouteBuilderExtensions.Map and IEndPointRouteBuilder.CreateApplicationBuilder to build two separate middleware pipelines than handle "/" and "/about-us" routes.