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