CommitAsync(System.Threading.CancellationToken cancellationToken) Method

Called when the chunk is complete. The BytesWritten property must be accurate after this returns.

Syntax

public virtual Task<byte[]> CommitAsync(System.Threading.CancellationToken cancellationToken)

Parameters

cancellationToken
Type: System.Threading.CancellationToken

Cancellation token.

Returns

Optional context data that will be persisted and passed into the next call of FileSystem.ContinueResumableUploadAsync(string fileName, byte[] state, System.Threading.CancellationToken cancellationToken) or FileSystem.CompleteResumableUploadAsync(string fileName, byte[] state, System.Threading.CancellationToken cancellationToken).