.netdependency-injectionframeworksninjectkephas

Kephas evaluation for Dependency Injection.


When evaluating Kephas, I’ve seen that it uses then Managed Extensibility Framework from Microsoft (System.Composition package). However, we use Ninject for Dependency Injection. Am I forced into changing the DI container, or may I use Ninject?


Solution

  • You don't have to change anything about your DI framework you use, in this case Ninject. However, depending on your migration strategy, you have to consider the following:

    = but =

    So you have the following options:

    Conclusion: even if you don't have to change the DI framework, for the reasons provided above it is recommended to do it.

    You may want to check the DI wiki for more information.

    Disclaimer: I am the lead developer of Kephas Framework.