예제 #1
0
 /// <summary>
 /// 获取服务
 /// </summary>
 /// <param name="serviceType"></param>
 /// <returns>服务实例</returns>
 public object GetService(Type serviceType)
 {
     return(objectContainer.GetService(serviceType));
 }
예제 #2
0
 public T GetService <T>() where T : class
 {
     return(objectContainer.GetService <T>());
 }