A thumbnail file.
More...
|
| ThumbnailFile (IFileSystem thumbnailFileSystem, string thumbnailPath, Size size) |
| Constructs a new instance of ThumbnailFile. More...
|
|
Task< Stream > | ReadAsync (CancellationToken cancellationToken) |
| Asynchronously reads thumbnail content. More...
|
|
async Task< long > | GetFileSize (CancellationToken cancellationToken) |
| Asynchronously gets file size in bytes. More...
|
|
◆ ThumbnailFile()
Constructs a new instance of ThumbnailFile.
- Parameters
-
thumbnailFileSystem | A file system with thumbnails. |
thumbnailPath | A path to thumbnail file. |
size | A size of the thumbnail. |
◆ GetFileSize()
async Task<long> GetFileSize |
( |
CancellationToken |
cancellationToken | ) |
|
|
inline |
Asynchronously gets file size in bytes.
- Parameters
-
cancellationToken | A cancellation token. |
- Returns
- A file size.
◆ ReadAsync()
Task<Stream> ReadAsync |
( |
CancellationToken |
cancellationToken | ) |
|
|
inline |
Asynchronously reads thumbnail content.
- Parameters
-
cancellationToken | A cancellation token. |
- Returns
- A stream with thumbnail data.
◆ Name
◆ Size
The documentation for this class was generated from the following file: