Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 2
0
        public string GetGlobalJsonFileAsString()
        {
            string path = GlobalConfigDataProvider.GetGlobalJsonFilePath();

            return(System.IO.File.ReadAllText(path));
        }