Earlier I posted quick summary of what’s changed in ASP.NET Core and one of the biggest change is Introduction of middleware. If you are coming from ASP.NET background then you should be aware about HTTPHandlers and HTTPModules. Middleware are replacement of these things. It’s a new and cleaner approach to play with HTTP pipeline. Read my post How ASP.NET Core 1.0 Middleware is different from HttpModule.
Along with built-in middleware, there are 2 options to define inline middleware using
app.Run extension methods. And if you are currently working and playing with ASP.NET Core 1.0 then you may find examples of
configure() method of Startup.cs class. Both of them are used for same purpose but they are different. How?