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.

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,971 Reputation points Volunteer Moderator
    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


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.