public async Task SaveAsync() { if (YamlHelper.TrySerialize(this, out string yaml)) { await File.WriteAllTextAsync(ConfigPath, yaml); } }