public async Task LoadUserConfigAsync(string appDataPath) { var filePath = Path.Combine(appDataPath, UserConfigFilename); using (var js = new JsonStore <T>()) { if (File.Exists(filePath)) { UserConfig = await js.ReadAsync(filePath); } else { UserConfig = new T(); UserConfig.SetDefault(); await js.WriteAsync(filePath, UserConfig); } } }