예제 #1
0
        /// <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);
                });
            }
        }
예제 #2
0
 /// <summary>
 /// 读取到文件,以configPath为路径
 /// </summary>
 /// <returns></returns>
 internal static TableConfigCollection LoadFromFile()
 {
     return(TableConfigCollection.LoadFromFile(ConstExpression.TableConfigConfigName));
 }