using Znyc.Cloudcar.Admin.Commons.Core.App; namespace Znyc.Cloudcar.Admin.Commons.IoC { /// /// IOC 容器 /// public class IoCContainer { /// /// 从容器中获取对象 Resolve an instance of the default requested type from the container /// /// 该方法即将废弃,请使用App.GetService(); /// /// /// 类型 /// public static T Resolve() where T : class { return App.GetService(); } } }