protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context) { context.AddNormalInstaller( new ActionInstaller((subContainer) => { InstallerBase installer = (InstallerBase)subContainer.InstantiateExplicit( _installerType, args.Concat(_extraArgs).ToList()); installer.InstallBindings(); })); }
public DiContainer CreateSubContainer(List <TypeValuePair> args, InjectContext context) { DiContainer subContainer = _container.CreateSubContainer(); InstallerBase installer = (InstallerBase)subContainer.InstantiateExplicit( _installerType, args.Concat(_extraArgs).ToList()); installer.InstallBindings(); subContainer.ResolveRoots(); return(subContainer); }
public void AddNormalInstaller(InstallerBase installer) { _normalInstallers.Add(installer); }