Class GridFSDownloadStream<TFileId>
Represents a Stream used by the application to read data from a GridFS file.
public abstract class GridFSDownloadStream<TFileId> : Stream, IDisposable
Type Parameters
TFileId
The type of the file identifier.
- Inheritance
-
GridFSDownloadStream<TFileId>
- Implements
- Inherited Members
Properties
FileInfo
Gets the files collection document.
public abstract GridFSFileInfo<TFileId> FileInfo { get; }
Property Value
- GridFSFileInfo<TFileId>
The files collection document.
Methods
Close(CancellationToken)
Closes the GridFS stream.
public abstract void Close(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
CloseAsync(CancellationToken)
Closes the GridFS stream.
public abstract Task CloseAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.