摘要:
1、先定义关机接口和具体关机的插件方法: public interface IPlugin { string Name { get; } //负责关闭计算机 void GuanJi(int t); } public class ShutDownClass : IPlugin { public voi 阅读全文
摘要:
1、InstancePerDependency 对每一个依赖或每一次调用创建一个新的唯一的实例。这也是默认的创建实例的方式。 官方文档解释:Configure the component so that every dependent component or call to Resolve() g 阅读全文