Middleware and Mvc Core Request pipe line

Arshad Nazeer 21 Reputation points
2022-02-11T12:01:55.297+00:00

173583-questpond-634071229688045547-6.png

173584-middleware.png

There are so many modules in request pipe line.
Under which module do these middleware exist?

Thanks.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,026 Reputation points
    2022-02-11T17:23:26.413+00:00

    that is the old asp.net pipeline, its is not used by asp.net core. in the old pipeline MVC was a HttpHandler and the handler had its own additional lifecycle.

    the asp.net core team agreed, and started over. in asp.net core there is only the middleware you register. each middleware calls the next middleware. the order is defined by the registion order. there are no events

    request-delegate-pipeline.png

    the typical registered middleware pipeline:

    middleware-pipeline.svg