public async Task GetAllTeamProjectsWITypes()
{
try
{
TeamProjectInfo[] teamProjects = CurrentProjectCollection.TeamProjectInfos;
Progress.BeginWorking(teamProjects.Length);
foreach (var teamProject in teamProjects)
{
try
{
await GetWITypes(teamProject);
Progress.NextStep();
}
catch (WitAdminException)
{
Progress.FailStep();
}
}
}
finally
{
Progress.EndWorking();
}
}