/// <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); }
/// <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); }