예제 #1
0
        public Mold(bool compile = true)
        {
            _ioc = new Container();
            RegisterCore();
            RegisterPages();
            RegisterData();
            RegisterLogic();
            RegisterLocal();

            _self           = this;
            _dependencyMold = _self;
            if (compile)
            {
                Build();
            }
        }
예제 #2
0
        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();
            }
        }