因为一些配置属性比较多,存在多组属性,因此结合xml解析、缓存技术,实现配置文化的自动解析、存入缓存、缓存依赖实时更新配置内容。
配置文件反序列化存入缓存的核心方法:
public Class.Settings GetSettings()
{
if (HttpRuntime.Cache[settings] != null)
return (Class.Settings)HttpRuntime.Cache[settings];
string rootPath = GetPath();
#region rootPath
if (rootPath == )
{
lo