示例#1
0
 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);
        }
示例#3
0
 public void AddNormalInstaller(InstallerBase installer)
 {
     _normalInstallers.Add(installer);
 }