Exemplo n.º 1
0
 private void RefreshGrid()
 {
     gridReleases.Rows.Clear();
     _async.Do(_client.GetReleaseDefinitions()).Then(defs =>
     {
         var dict = defs.ToDictionary(d => d, d => _client.GetMostRecentReleases(d.Id));
         _async.Do(Task.WhenAll(dict.Values)).Then(_ => PopulateReleaseList(dict.ToDictionary(d => d.Key, d => d.Value.Result)));
     });
 }
Exemplo n.º 2
0
        private void RefreshGrid()
        {
            gridReleases.Rows.Clear();
            gridPullRequests.Rows.Clear();

            _async.Do(_client.GetReleaseDefinitions()).Then(clientResult =>
            {
                var dict = clientResult.Defs.ToDictionary(d => d, d => _client.GetMostRecentReleases(d.Id));

                _async.Do(_client.GetPullRequests(false)).Then(PopulatePrList);
                _async.Do(Task.WhenAll(dict.Values))
                .Then(_ => PopulateReleaseList(dict.ToDictionary(d => d.Key, d => d.Value.Result), clientResult.FailingSolutions));
            });
        }