public Mold(bool compile = true) { _ioc = new Container(); RegisterCore(); RegisterPages(); RegisterData(); RegisterLogic(); RegisterLocal(); _self = this; _dependencyMold = _self; if (compile) { Build(); } }
public Mold(bool compile = true) { _ioc = new ServiceContainer(new ContainerOptions { EnablePropertyInjection = false }); //_pageIoc = new ServiceContainer(new ContainerOptions { EnablePropertyInjection = false }); RegisterCore(); RegisterPages(); RegisterData(); RegisterLogic(); RegisterLocal(); RegisterComponents(); _self = this; _dependencyMold = _self; if (compile) { Build(); } }