Exemplo n.º 1
0
 public async Task DownloadFileFromStorageAsync(AccountFile file, Stream output, CancellationToken token, Action <TransferProgress> progressCallback)
 {
     await Storage.DownloadFileAsync(file.StorageFile, output, token, progressCallback);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Download folder or file from storage (not from drive).
 /// </summary>
 /// <param name="destFolder">Path of folder whare to nest a downloaded file or folder.
 /// For example if <paramref name="file"/> is "/photo2010/egypt" and <paramref name="destFolder"/>
 /// is "d:/photos", then in "photos" folder will be created subfolder "egypt" with downloaded files.
 /// </param>
 public async Task DownloadFileFromStorageAsync(AccountFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action <TransferProgress> progressCallback)
 {
     await Storage.DownloadFileAsync(file.StorageFile, destFolder, actionIfFileExists, token, progressCallback);
 }