Esempio n. 1
0
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static SiteConfigFileManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo    = (SiteConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(SiteConfigInfo));
 }
Esempio n. 2
0
 /// <summary>
 /// 加载真正有效的配置类
 /// </summary>
 /// <returns></returns>
 public static SiteConfigInfo LoadRealConfig()
 {
     ConfigInfo = DefaultConfigFileManager.LoadConfig(ref m_fileoldchange, ConfigFilePath, ConfigInfo, false);
     return(ConfigInfo as SiteConfigInfo);
 }
Esempio n. 3
0
 /// <summary>
 /// 加载配置类
 /// </summary>
 /// <returns></returns>
 public static BaseConfigInfo LoadConfig()
 {
     ConfigInfo = DefaultConfigFileManager.LoadConfig(ref m_fileoldchange, ConfigFilePath, ConfigInfo);
     return(ConfigInfo as BaseConfigInfo);
 }