Example #1
0
        /// <summary>
        /// 初始化方法
        /// </summary>
        protected override void Init()
        {
            Kernel.AddComponent("SystemService", typeof(ISystemService), typeof(SystemService));
            SystemComponentInspector inspector = new SystemComponentInspector(Kernel[typeof(ISystemService)] as ISystemService);

            Kernel.ComponentModelBuilder.AddContributor(inspector);
        }
Example #2
0
 /// <summary>
 /// 初始化方法
 /// </summary>
 protected override void Init()
 {
     Kernel.AddComponent("SystemService", typeof(ISystemService), typeof(SystemService));
     SystemComponentInspector inspector = new SystemComponentInspector(Kernel[typeof(ISystemService)] as ISystemService);
     Kernel.ComponentModelBuilder.AddContributor(inspector);
 }