/// <summary> /// /// </summary> private static void Reader() { string filePath = Path.Combine(ConfigurationHelper.AppSettingPath("TableConfig"), ConstExpression.TableConfigConfigName); if (System.IO.File.Exists(filePath)) { _TableConfigCollection = TableConfigCollection.LoadFromFile(filePath); FileSystemWatcherHelper.StartChanged(filePath, () => { _TableConfigCollection = TableConfigCollection.LoadFromFile(filePath); }); } }
/// <summary> /// 读取到文件,以configPath为路径 /// </summary> /// <returns></returns> internal static TableConfigCollection LoadFromFile() { return(TableConfigCollection.LoadFromFile(ConstExpression.TableConfigConfigName)); }