private void LoadAuth(string path) { if (File.Exists(path)) { // Load the JSON _auth = JsonConvert.DeserializeObject <AuthenticationConfig>( File.ReadAllText(path)); } else { _auth = new AuthenticationConfig(); } }
private void LoadAuth(string path) { if (File.Exists(path)) { // Load the JSON _auth = JsonConvert.DeserializeObject<AuthenticationConfig>( File.ReadAllText(path)); } else { _auth = new AuthenticationConfig(); } }