using Znyc.Admin.Commons.Core.App; namespace Znyc.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(); } } }