private async static Task <ICollection <string> > GetItemUrls(IBlobContentStorageProvider storageProvider, GenericSearchResult <BlobEntry> searchResult) { var urls = new List <string>(); foreach (var item in searchResult.Results.OfType <BlobInfo>()) { urls.Add(item.RelativeUrl); } foreach (var folder in searchResult.Results.OfType <BlobFolder>()) { var folderSearchResult = await storageProvider.SearchAsync(folder.RelativeUrl, null); urls.AddRange(await GetItemUrls(storageProvider, folderSearchResult)); } return(urls); }
public ContentExportImport(IMenuService menuService, IBlobContentStorageProvider blobContentStorageProvider, JsonSerializer jsonSerializer) { _menuService = menuService; _jsonSerializer = jsonSerializer; _blobContentStorageProvider = blobContentStorageProvider; }