An Absolute Beginner’s Tutorial on Middleware in ASP.NET Core/MVC

#ICYDK: In this article, we will try to understand the concept of middleware in ASP.NET core. We will see how middleware plays an important part in the request-response pipeline and how we can write and plug-in our custom middleware.

Background

Before we can get into the what middleware is and the value it brings, we need to understand how the request-response works in a classic ASP.NET model. In earlier days, the request and response objects in ASP.NET were very big and had a very tight coupling with IIS. This was a problem because some of the values in these objects are filled by the IIS request-response pipeline, and unit testing such bloated objects was a very big challenge. https://goo.gl/EVSx3t

Subscribe To Newsletter

Sign up for my newsletter and get the latest technology news

2019 © Craig Brown PhD. All rights reserved.