Exemplo n.º 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);
        }
Exemplo n.º 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);
 }