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(); }
protected override async Task PrepareOverrideAsync() { await TaskExtension.MakeList(UploadStuffWithPreviewsTask, UploadStuffWithoutPreviewsTask).WhenAll(); }
private async Task UploadStuffWithPreviewsTask() { await PreparePreviewsAsync(); await TaskExtension.MakeList(async() => await PrepareMainPackageAsync(await PackMainAsync()), UploadSkinsAsync).WhenAll(); }