In the documentation it indiactes that a module is defined in one of four ways:
- Defined in code <-- I would expect to see an override of GetModuleCatalog
- Defined in xaml <-- I would expect to see a ModuleCatalog.xaml
- Read from configuration file <-- I would expect to see an App.Config
- Discovering all modules in a directory <-- I would expect to see attributes on the modules defining the dependencies
I don't see any of these being done; can someone enlighten me? I don't understand how the container knows how to inject the dependencies into the constructor of the modules when it does:
IModule employeeModule = this.Container.Resolve<EmployeeModule>();
I looked at the StockTraderRI and it appears that the modules are defined in code, but i'm still not sure I understand how the UnityContainer knows how to inject dependencies here.