using Znyc.Recruitment.Admin.Commons.Core.App;

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