diff --git a/src/OnePeek.Api/AppMetadataEndpoint.cs b/src/OnePeek.Api/AppMetadataEndpoint.cs index 611725e..6433f36 100644 --- a/src/OnePeek.Api/AppMetadataEndpoint.cs +++ b/src/OnePeek.Api/AppMetadataEndpoint.cs @@ -8,6 +8,7 @@ using System.Xml.Linq; using System.Linq; using System.Collections.Generic; using System.Diagnostics; +using System.Threading; namespace OnePeek.Api { @@ -98,11 +99,19 @@ namespace OnePeek.Api - public async Task>> GetMetadataForAllCultures(string appId, StoreType store) + public async Task> GetMetadataForAllCultures(string appId, StoreType store, CancellationToken ct, IProgress progress) { IEnumerable cultures = Enum.GetValues(typeof(StoreCultureType)).Cast(); - throw new NotImplementedException(); + IEnumerable> tasks = cultures.Select(culture => + { + return GetMetadata(appId, store, culture); + }); + + return await Task.WhenAll(tasks).ConfigureAwait(false); } } + + + public class DownloadProgressChangedEventArgs : EventArgs { } }