Esempio n. 1
0
 private async Task UploadStuffWithoutPreviewsTask()
 {
     await TaskExtension.MakeList(
         async() => {
         try {
             var showroomPackage = await PackShowroomAsync();
             ShowroomUrl         = await UploadFileAsync("showroom package", "showroom.zip", showroomPackage);
         } catch (Exception e) {
             Logging.Warning(e);
         }
     },
         async() => {
         UpgradeIconUrl = File.Exists(Target.UpgradeIcon)
                         ? await UploadFileAsync("upgrade icon", "upgrade.png", Target.UpgradeIcon)
                         : null;
     })
     .WhenAll();
 }
Esempio n. 2
0
 protected override async Task PrepareOverrideAsync()
 {
     await TaskExtension.MakeList(UploadStuffWithPreviewsTask, UploadStuffWithoutPreviewsTask).WhenAll();
 }
Esempio n. 3
0
        private async Task UploadStuffWithPreviewsTask()
        {
            await PreparePreviewsAsync();

            await TaskExtension.MakeList(async() => await PrepareMainPackageAsync(await PackMainAsync()), UploadSkinsAsync).WhenAll();
        }