public async Task <string> DownloadToTempAsync(ISystemConfiguratorProxy systemConfiguratorProxy) { var info = new AzureFileTransferInfo() { ConnectionString = ConnectionString, ContainerName = ContainerName, BlobName = BlobName, Upload = false, RelativeLocalPath = BlobName }; await AzureBlobFileTransfer.TransferFileAsync(info, systemConfiguratorProxy); return(BlobName); }
public async Task <string> DownloadToTempAsync(DeviceManagementClient client) { var path = DMGarbageCollector.TempFolder + BlobName; var info = new AzureFileTransferInfo() { ConnectionString = ConnectionString, ContainerName = ContainerName, BlobName = BlobName, Upload = false, LocalPath = path }; await AzureBlobFileTransfer.TransferFileAsync(info, client); return(path); }