TfsWitAdminTools.ViewModel.ToolsVM.GetAllTeamProjectsWITypes C# (CSharp) Method

GetAllTeamProjectsWITypes() public method

public GetAllTeamProjectsWITypes ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        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();
            }
        }