zenject

Layered architecture by Zenject's DiContainers

左心房为你撑大大i 提交于 2019-12-11 14:43:58
问题 In my application I have three layers: * Data (Entities and Data Access Objects) * Model (Managers) * Presentation (Views) I decided that SubContainers is my choice. In the root GameInstaller I create every container and manually install them with LayerInstallers: public class GameInstaller : MonoInstaller { public GameDataLayerInstaller DataLayerInstaller; public GameModelLayerInstaller ModelLayerInstaller; public GamePresentationLayerInstaller PresentationLayerInstaller; public override