The ASP.NET Core request pipeline processing is completely rewritten from the traditional ASP.NET request processing. Every request is processed through a sequence of request delegates to return a response.
ASP.NET Core documentation depicts HTTP request processing, as shown in the following screenshot:
The blue bars indicate that the middleware components (either built-in or custom built), once an HTTP request arrives on pipeline (the Configure method), encounters Middleware 1 component. The processing of request takes place in //logic, then request is passed on the next middleware in the sequence using next().
The request processing reaches Middleware 2 components, does the processing, and passes onto the next Middleware 3 using next(). Here, after the request is processed, it does not encounter next...