コード例 #1
0
        static async Task SvnRepos()
        {
            var taskList = new List <Task>();

            foreach (string url in Builder.Config.SvnReposHttp)
            {
                var  repo     = new SvnClient(url, Builder.Config.DownloadPath, Builder.Config.SvnUser, Builder.Config.GitPassword, Builder.Config.SvnEmail);
                Task repoTask = new Task(() => repo.CheckoutUpdate());
                repoTask.Start();
                taskList.Add(repoTask);
            }
            foreach (Task task in taskList)
            {
                await task;
            }
        }