internal string ReadSettingInternal(string key) { if (!ParagoServiceSettings.ValidateKey(key)) { throw new ParagoServiceException("Setting key is not valid"); } return(_settings.ContainsKey(key) ? _settings[key] : null); }
internal void DeleteSettingInternal(string key) { if (!ParagoServiceSettings.ValidateKey(key)) { throw new ParagoServiceException("Setting key is not valid"); } if (_settings.ContainsKey(key)) { _settings.Remove(key); } }
internal void UpdateSettingInternal(string key, string value) { if (!ParagoServiceSettings.ValidateKeyValue(key, value)) { throw new ParagoServiceException("Setting key or value is not valid"); } if (_settings.ContainsKey(key)) { _settings[key] = value; } else { _settings.Add(key, value); } }