protected void ensureConfigExists()
 {
     if (!File.Exists(CONFIG_FILE))
     {
         Log.Information("LSDViewConfig.json not found - creating anew");
         Config = new LSDViewConfig();
         serializeConfig();
     }
 }
Exemple #2
0
 private void ensureConfigExists()
 {
     if (!File.Exists(CONFIG_FILE))
     {
         Logger.Log()(LogLevel.INFO, "LSDViewConfig.json not found - creating anew");
         Config = new LSDViewConfig();
         serializeConfig();
     }
 }
 protected void deserializeConfig()
 {
     Log.Information("Deserializing LSDViewConfig.json");
     Config = JsonConvert.DeserializeObject <LSDViewConfig>(File.ReadAllText(CONFIG_FILE));
 }
Exemple #4
0
 private void deserializeConfig()
 {
     Logger.Log()(LogLevel.INFO, "Deserializing LSDViewConfig.json");
     Config = JsonConvert.DeserializeObject <LSDViewConfig>(File.ReadAllText(CONFIG_FILE));
 }