public async Task RefreshUserInfo() { this.IsPending = true; try { using (var client = new GitLabClient(this.GitOptions)) { var user = await client.GetUserAsync(); this.userId = user.Id; this.userName = user.Name; } } catch (Exception ex) { this.errorService.AddError(ex); } finally { this.IsPending = false; } }