The previous chapter provided an overview of ASP.NET Core projects. We looked at how to create an ASP.NET Core project and how to deal with the files and the structure involved. Also, we learned some of the basic concepts behind the MVC stack and ASP.NET Core. Now, let's explore the concept of middleware in depth. Middleware is an essential part of the ASP.NET Core platform: it helps us to deal with incoming requests and outgoing responses. Most of all, these types of components can be used to monitor performances and implement cross-cutting functionalities. The chapter starts with an introduction to the middleware concept. It goes on to show how to implement custom middleware and it ends with an overview of the built-in middleware of ASP.NET Core.
This chapter covers the following topics:
- Introducing middleware and dealing with its...