You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
726 B

using Znyc.Cloudcar.Admin.Commons.Cache;
using Znyc.Cloudcar.Admin.Commons.Helpers;
using Znyc.Cloudcar.Admin.Security.Entitys;
namespace Znyc.Cloudcar.Admin.AspNetCore.Common
{
/// <summary>
/// 系统初始化内容
/// </summary>
public abstract class Initialization
{
/// <summary>
/// 初始化
/// </summary>
public virtual void Initial()
{
CacheHelper cacheHelper = new CacheHelper();
SysSettingEntity sysSetting = XmlConverter.Deserialize<SysSettingEntity>("xmlconfig/sys.config");
if (sysSetting != null)
{
cacheHelper.Add("SysSetting", sysSetting);
}
}
}
}