How to chain NInject modules together
Simple, inside a NInject module you can access the kernel:
Kernel.Load(new [] { new [YourModule]() });
If your module has a single module it depends on, you can inherit from that module (instead of NinjectModule
) and call base.Load()
:
public override void Load(){ base.Load(); ...}
This will effectively chain the modules.