Relative Content

Tag Archive for .netdependency-injectionautofac.net-8.0

Runtime registration, register a new instance on runtime. (autofac)

I use DI to decouple some services from the rest of the application. I register them at the composition root of the project and read their configurations from the database. I would like to implement a feature that allows clients to add new configurations to databases, then call APIs and have them register as new instances. In the old version of Autofac, I used to do this, but they removed it in the new version.

Runtime registration, adding a new interface on runtime. (autofac)

I use DI to decouple some services from the rest of the application. I register them at the composition root of the project and read their configurations from the database. I would like to implement a feature that allows clients to add new configurations to databases, then call APIs and have them register as new instances. In the old version of Autofac, I used to do this, but they removed it in the new version.