예제 #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public LeafExtensionBase()
        {
            //初始化API注入器
            ApiAllocator apiAllocator = new ApiAllocator(this);

            //注入属性
            injector = new LeafPropertyInjector(this, apiAllocator);
            injector.Inject();

            //构造入口点执行器
            executor = new LeafEntryExecutor(this, apiAllocator);
        }
예제 #2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public LeafExtensionBase()
        {
            //初始化API注入器
            ApiAllocator apiAllocator = new ApiAllocator(this);

            //注入属性
            injector = new LeafPropertyInjector(this, apiAllocator);
            injector.Inject();

            //构造入口点执行器
            executor = new LeafEntryExecutor(this, apiAllocator);
            var proxy = lake.Get <IProxyBuilder>().CreateProxyOf(this);

            proxy.InjectProperty();
            proxy.Lakes.Add(this);
        }
예제 #3
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public LeafExtensionBase()
        {
            //初始化API注入器
            ApiAllocator apiAllocator = new ApiAllocator(this);

            //执行切面
            ExecuteBca();

            //注入属性
            injector = new LeafPropertyInjector(this, apiAllocator);
            injector.Inject();

            //构造入口点执行器
            executor = new LeafEntryExecutor(this, apiAllocator);

            //注册信号接收系统
            signalDistributor = new LSignalDistributor(this);
            signalDistributor.ScanReceiver();
        }