File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
sdk/storage/Azure.Storage.DataMovement.Blobs/samples Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -937,9 +937,11 @@ public async Task PauseAndResumeAsync_DataTransferPause()
937937 await sourceBlob . DownloadToAsync ( downloadPath ) ;
938938
939939 // Create transfer manager
940- TransferManager transferManager = new TransferManager ( new TransferManagerOptions ( ) ) ;
941940 BlobsStorageResourceProvider blobs = new ( ) ;
942941 LocalFilesStorageResourceProvider files = new ( ) ;
942+ TransferManagerOptions options = new TransferManagerOptions ( ) ;
943+ options . ResumeProviders = new List < StorageResourceProvider > ( ) { files , blobs } ;
944+ TransferManager transferManager = new TransferManager ( options ) ;
943945
944946 // Create source and destination resource
945947 StorageResource sourceResource = blobs . FromClient ( sourceBlob ) ;
You can’t perform that action at this time.
0 commit comments