コード例 #1
0
        protected override async Task <ZipArchive> GetZipArchive(string filePath)
        {
            var blob = await _client.GetBlobAsync(filePath);

            var file = await RestoreBackupTaskBase.CopyRemoteStreamLocally(blob.Data, _configuration.TempPath);

            return(new DeleteOnCloseZipArchive(file, ZipArchiveMode.Read));
        }
コード例 #2
0
        protected override async Task <ZipArchive> GetZipArchive(string filePath)
        {
            var blob = await _client.GetBlobAsync(filePath);

            return(new ZipArchive(blob.Data, ZipArchiveMode.Read));
        }
コード例 #3
0
        protected override async Task <Stream> GetStream(string path)
        {
            var blob = await _client.GetBlobAsync(path);

            return(blob.Data);
        }