你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TransferManager Class

Definition

The main class for starting and controlling all types of transfers.

public class TransferManager : IAsyncDisposable
type TransferManager = class
    interface IAsyncDisposable
Public Class TransferManager
Implements IAsyncDisposable
Inheritance
TransferManager
Implements

Constructors

TransferManager()

Protected constructor for mocking.

TransferManager(TransferManagerOptions)

Constructor to create a TransferManager.

Methods

GetResumableTransfersAsync()

Lists all the transfers stored in the checkpointer that can be resumed.

GetResumableTransfersAsync(CancellationToken)

Lists all the transfers stored in the checkpointer that can be resumed.

GetTransfersAsync(DataTransferStatus[])

Gets the current transfers stored in the TransferManager.

GetTransfersAsync(ICollection<TransferStatus>, CancellationToken)

Gets the current transfers stored in the TransferManager.

PauseTransferAsync(String, CancellationToken)

Attempts to pause the transfer of the respective id.

PauseTransferIfRunningAsync(String, CancellationToken)

Attempts to pause the transfer of the respective id.

ResumeAllTransfersAsync(DataTransferOptions, CancellationToken)

Resumes all the transfers stored in the checkpointer that can be resumed.

ResumeAllTransfersAsync(TransferOptions, CancellationToken)

Resumes all the transfers stored in the checkpointer that can be resumed.

ResumeTransferAsync(String, DataTransferOptions, CancellationToken)

Resumes a transfer that has been paused or is in a completed state with failed or skipped transfers.

ResumeTransferAsync(String, TransferOptions, CancellationToken)

Resumes a transfer that has been paused or is in a completed state with failed or skipped transfers.

StartTransferAsync(StorageResource, StorageResource, DataTransferOptions, CancellationToken)

Starts a transfer from the given source resource to the given destination resource.

StartTransferAsync(StorageResource, StorageResource, TransferOptions, CancellationToken)

Starts a transfer from the given source resource to the given destination resource. Ensure StorageResource instances are built with appropriate permissions.

Explicit Interface Implementations

IAsyncDisposable.DisposeAsync()

Disposes.

Applies to