Ejemplo n.º 1
0
 public async Task <string> DownloadVersionAsync(UpdateInfo version, CancellationToken cancellationToken, IDownloadProgress downloadProgress)
 {
     if (!Directory.Exists(_updatesStoragePath))
     {
         Directory.CreateDirectory(_updatesStoragePath);
     }
     return(await _updateRepository.DownloadAsync(version, _updatesStoragePath, cancellationToken, downloadProgress));
 }