-
Notifications
You must be signed in to change notification settings - Fork 20
IAreaConfig
Peter edited this page Jun 22, 2016
·
4 revisions
Requires reference to Ninject nuget.
You can use this class to fully customize your Kernel bindings.
Create a public class within your plugin and make it implement this interface. You now have access to the complete IKernel service!
See Ninject docs for details.
Pitfalls:
- Wurm Assistants makes a few modifications to default Kernel configuration. Most importantly, IMissingBindingResolver is removed, making it impossible to resolve unregistered types, even if they are concrete. This is done to help avoiding hard-to-find errors. You can find most up to date info within KernelConfig (AldursLab.WurmAssistant3.Areas.Core.Services).
- Execution order of all IAreaConfigs is completely arbitrary, so avoid any procedural code here and stick to Bind() family of methods.