You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can also put the registrations into custom middlewares and register different dependencies in different middlewares based on some arguments. For example:
Basically, I can build the container in the
Startup.Configuration
method and then add the Autofac middleware into theIAppBuilder
.I can also put the registrations into custom middlewares and register different dependencies in different middlewares based on some arguments. For example:
Is it a good practice? Are there any pitfalls about it?
Thank you.
The text was updated successfully, but these errors were encountered: