Пример #1
0
        /// <summary>
        /// Loads all the cache settings in the memory
        /// </summary>
        public void CacheAllSettings()
        {
            DataSet     dataSet     = new SettingDataProvider().GetAllCachedSettings();
            CacheHelper cacheHelper = new CacheHelper(_memoryCache);

            cacheHelper.SetObjectValue(SettingKeys.SettingList, DataSetToDictionary(dataSet));
        }
Пример #2
0
        public async Task <int> SettingValueUpdate(string settingKey, string settingValue)
        {
            SettingDataProvider settingDataProvider = new SettingDataProvider();

            return(await settingDataProvider.SettingValueUpdate(settingKey, settingValue));
        }
Пример #3
0
        public Dictionary <string, string> GetSettingValuesByKeys(string keys)
        {
            DataSet dataSet = new SettingDataProvider().GetSettingsValueByKeys(keys);

            return(DataSetToDictionary(dataSet));
        }