You have probably wondered whether it is possible to manipulate different instances of the same service according to a certain context in your application. Well, know that it is possible. I have prepared in this article a concrete example of dynamic dependency injection in a multitenant WebAPI context: for the same service (interface) it is possible to invoke the concrete instance appropriate for the current tenant.

Bharat Dwarkani shared on Aug 30, 2019
favorite_border0 visibility17
favorite_border0 visibility17 share bookmarks