Method CloseAsync
CloseAsync(CancellationToken)
Closes the Stream and completes the upload operation.
public Task CloseAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.
Remarks
Any data remaining in the Stream is flushed to the server and the GridFS files collection document is written.