/// <summary> /// 保存配置类实例 /// </summary> /// <param name="emailconfiginfo"></param> /// <returns></returns> public static bool SaveConfig(DataCacheConfigInfo emailconfiginfo) { DataCacheConfigFileManager ecfm = new DataCacheConfigFileManager(); DataCacheConfigFileManager.ConfigInfo = emailconfiginfo; return ecfm.SaveConfig(); }
/// <summary> /// 初始化文件修改时间和对象实例 /// </summary> static DataCacheConfigFileManager() { m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath); m_configinfo = (DataCacheConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(DataCacheConfigInfo)); }