/// <summary> /// Saves string to jasper.json global configuration file. /// </summary> /// <param name="jsonContent"></param> /// <exception cref="GlobalConfigDataException"></exception> public void SaveGlobalJsonFileAsString(string jsonContent) { try { string path = GlobalConfigDataProvider.GetGlobalJsonFilePath(); System.IO.File.WriteAllText(path, jsonContent); } catch (Exception) { throw new GlobalConfigDataException(); } }
public void SaveData(GlobalConfigData dataToSave) { GlobalConfigDataProvider.SaveData(dataToSave); }
public string GetGlobalJsonFileAsString() { string path = GlobalConfigDataProvider.GetGlobalJsonFilePath(); return(System.IO.File.ReadAllText(path)); }
public void RefreshData() { this.ConfigurationDataObject = GlobalConfigDataProvider.GetFreshData(); }