Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Common Interface for Dependency Injection

I am working on an open source lib which uses Ninject for Dependency Injection purposes. I would like to offer others the ability to use their own injection libs with my code. I do not use anything specific to Ninject as far as I am aware.

Is there a Standard interface already in use by the community that I can use for this purpose? If not has anyone created such an interface before?

like image 750
McDonnellDean Avatar asked Jun 28 '26 18:06

McDonnellDean


1 Answers

This is where the Common Service Locator is designed for. There is a CSL adapter for Ninject.

like image 93
Steven Avatar answered Jul 01 '26 07:07

Steven