private static async Task PerformOperation(DownloadRequestOptions o) { Logging.Log("Checking for updates..."); CTAC ctac = new CTAC(o.ReportingSku, o.ReportingVersion, o.MachineType, o.FlightRing, o.FlightingBranchName, o.BranchReadinessLevel, o.CurrentBranch, o.ReleaseType, o.SyncCurrentVersionOnly); IEnumerable <UpdateData> data = await FE3Handler.GetUpdates(null, ctac, null, FileExchangeV3UpdateFilter.ProductRelease); data = data.Select(x => UpdateUtils.TrimDeltasFromUpdateData(x)); foreach (UpdateData update in data) { await ProcessUpdateAsync(update, o.OutputFolder, o.MachineType, o.Language, o.Edition, true); //await BuildUpdateXml(update, o.MachineType); } Logging.Log("Completed."); if (Debugger.IsAttached) { Console.ReadLine(); } }
public static async Task <string[]> DownloadPackageAsync(string[] categoryIds, CTAC ctac, DirectoryInfo downloadDirectory, DownloadProgress progress, string msaToken = "") { var updates = await FE3Handler.GetUpdates(categoryIds, ctac, msaToken, FileExchangeV3UpdateFilter.Application); return(await DownloadPackageAsync(updates, downloadDirectory, progress, msaToken)); }