Method OpenDownloadStreamAsync
OpenDownloadStreamAsync(TFileId, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
Task<GridFSDownloadStream<TFileId>> OpenDownloadStreamAsync(TFileId id, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileId The file id.
options
GridFSDownload Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<Grid
FSDownload <TFileId>>Stream A Task whose result is a Stream.