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