How to use factory-based middleware activation in ASP.NET Core
Factory-based middleware activation is a more flexible and dynamic approach to configuring and activating middleware components. Here’s how to take advantage of it in ASP.NET Core 7.
Source: infoworld.com