Example #1
0
        private async Task GetWorkItems(IEnumerable <int> ids)
        {
            try
            {
                IsBusy = true;
                var workItems = await _tfsService.GetWorkItems(ids);

                WorkItems = new ObservableCollection <WorkItem>(workItems.Value);
            }
            catch (ServiceException e)
            {
                HandleServiceException(e);
            }
            finally
            {
                IsBusy = false;
            }
        }
Example #2
0
 /// <summary>
 /// Get all work items of a given team project in TFS
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <WorkItemModel> > Get()
 {
     return(await Task.Run(() => _tfsService.GetWorkItems()));
 }