CKFinder 3 – ASP.NET Connector Documentation
ThumbnailFile Class Reference

A thumbnail file. More...

Public Member Functions

 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...
 

Properties

string Name [get]
 Gets the thumbnail name. More...
 
Size Size [get]
 Gets the thumbnail size. More...
 

Detailed Description

A thumbnail file.

Constructor & Destructor Documentation

◆ ThumbnailFile()

ThumbnailFile ( IFileSystem  thumbnailFileSystem,
string  thumbnailPath,
Size  size 
)
inline

Constructs a new instance of ThumbnailFile.

Parameters
thumbnailFileSystemA file system with thumbnails.
thumbnailPathA path to thumbnail file.
sizeA size of the thumbnail.

Member Function Documentation

◆ GetFileSize()

async Task<long> GetFileSize ( CancellationToken  cancellationToken)
inline

Asynchronously gets file size in bytes.

Parameters
cancellationTokenA cancellation token.
Returns
A file size.

◆ ReadAsync()

Task<Stream> ReadAsync ( CancellationToken  cancellationToken)
inline

Asynchronously reads thumbnail content.

Parameters
cancellationTokenA cancellation token.
Returns
A stream with thumbnail data.

Property Documentation

◆ Name

string Name
get

Gets the thumbnail name.

◆ Size

Size Size
get

Gets the thumbnail size.


The documentation for this class was generated from the following file: