As per the ASP.NET Core documentation (available at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?tabs=aspnetcore2x), middleware is a software that is assembled into an application pipeline to handle requests and responses. Each component:
- Chooses whether to pass the request to the next component in the pipeline
- Can perform work before and after the next component in the pipeline is invoked
Request delegates are used to build the request pipeline. The request delegates handle each HTTP request. Request delegates are configured using the Run, Map, and Use extension methods. An individual request delegate can be specified inline as an anonymous method (called inline middleware), or it can be defined in a ...