public void runDownload()
{
try
{
//var manager = new ArchiveTransferManager(Amazon.RegionEndpoint.USWest2);
//var options = new DownloadOptions();
//options.StreamTransferProgress += ArchiveDownloadHighLevel.progress;
//// Download an archive.
//Console.WriteLine("Intiating the archive retrieval job and then polling SQS queue for the archive to be available.");
//Console.WriteLine("This polling takes about 4 hours. Once the archive is available, downloading will begin.");
//manager.Download(vaultName, archiveId, downloadFilePath, options);
//Console.WriteLine("To continue, press Enter");
//Console.ReadKey();
var manager = new ArchiveTransferManager(Amazon.RegionEndpoint.USEast1);
var options = new DownloadOptions();
options.StreamTransferProgress += DownloadFile.progress;
Console.WriteLine("Intiating the archive retrieval job and then polling SQS queue for the archive to be available.");
Console.WriteLine("This polling takes about 4 hours. Once the archive is available, downloading will begin.");
manager.Download(vaultName, archiveToDownload, downloadFilePath, options);
manager.Download(vaultName, archiveToDownload2, downloadFilePath2, options);
Console.WriteLine("To continue, press Enter");
Console.ReadKey();
}
catch (AmazonGlacierException e) { Console.WriteLine(e.Message); }
catch (AmazonServiceException e) { Console.WriteLine(e.Message); }
catch (Exception e) { Console.WriteLine(e.Message); }
Console.WriteLine("To continue, press Enter");
Console.ReadKey();
}