private void ButtonClick1(object sender, RoutedEventArgs e) { var conn = new GitLabConnection(new Uri("http://securityvision.ch:8010"), new Token(txtToken.Text)); //conn.TestJsonProjects(); AsyncQuery(); }
private async void AsyncQuery() { var conn = new GitLabConnection(new Uri("http://securityvision.ch:8010"), new Token(txtToken.Text)); var sb = new StringBuilder(); foreach (var project in await conn.FetchAllProjects()) { sb.AppendLine(project.ToString()); } txtResponse.Text = sb.ToString(); }