示例#1
0
 public void AddService(Type serviceInterface, object serviceInstance)
 {
     Framework.AddSystemService(serviceInterface, new object[] { serviceInstance });
 }
示例#2
0
 public void AddService <ServiceInterface>(object serviceInstance)
 {
     Framework.AddSystemService(typeof(ServiceInterface), new object[] { serviceInstance });
 }