示例#1
0
        public async Task ExecuteAsync()
        {
            Console.WriteLine();
            Console.WriteLine("Running match...");
            var submissionResult = await myWebApp.GetValidSubmissionsAsync();

            var downloadedSubmissions = await DownloadSubmissions(submissionResult);

            using (myFanControl.TurnOnTemporarily())
            {
                await ConsoleUtilities.CountDown(myConfig.CoolDownSeconds, i => $"Cooldown... {i}", "Cooldown complete.");

                var matchResults = await myMatchManager.RunMatch(downloadedSubmissions).LastAsync();

                await myWebApp.UploadMatchResults(matchResults).WithProgressLog("Uploading match results");

                myFileManager.CleanTempDirectory();
            }
        }
示例#2
0
 private static async Task ReconnectCountDown()
 {
     await ConsoleUtilities.CountDown(60, i => $"Reconnecting in... {i}", "Reconnecting...");
 }