Chapter 8: Writing Custom Middleware

Wow, we are already onto the eighth chapter of this book! In this chapter, we will learn about middleware and how you can use it to customize your app a little more. We will quickly go over the basics of middleware and then we'll explore some special things you can do with it.

In this chapter, we'll cover the following topics:

  • Introducing middleware
  • Writing custom middleware
  • Exploring the potential of middleware
  • Using middleware on ASP.NET Core 3.0 and later

The topics covered in this chapter relate to the middleware layer of the ASP.NET Core architecture:

Figure 8.1 – The ASP.NET Core architecture

Figure 8.1 – The ASP.NET Core architecture

Get Customizing ASP.NET Core 6.0 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.