Dynamically Loading Middleware in ASP.NET Core

added by DotNetKicks
11/26/2018 2:25:30 PM

1 Kicks, 166 Views

The concept of middleware has been around since ASP.NET MVC (pre-Core) and OWIN. Essentially, a middleware component lives in a pipeline and handles requests and acts as a chain of responsibility, delegating to any subsequent middleware components registered in the pipeline after itself. The following image (taken from the Microsoft site) shows this.