steven preadly
Explore posts from servers✅ Factory-based middleware activation in asp.net core
i can found this on this link of the docs https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/write?view=aspnetcore-8.0#per-request-middleware-dependencies
25 replies
✅ Factory-based middleware activation in asp.net core
when middleware implements the IMiddlewear it used the IMiddlewearFacory interface to create an instance of the middleware and IMiddlewearFacory itself is registerd as a scoped sevice in the DI What makes it easy to inject scoped service in the middlewear that implements the IMiddlewear
25 replies