Method | Description | |
---|---|---|
AddImageToCacheAsync ( Stream stream, string contentType ) : System.Threading.Tasks.Task |
Adds the image to the cache in an asynchronous manner.
|
|
DiskCache ( string requestPath, string fullPath, string querystring ) : System.Collections.Generic |
Initializes a new instance of the DiskCache class.
|
|
IsNewOrUpdatedAsync ( ) : Task |
Gets a value indicating whether the image is new or updated in an asynchronous manner.
|
|
RewritePath ( |
Rewrites the path to point to the cached image.
|
|
TrimCacheAsync ( ) : System.Threading.Tasks.Task |
Trims the cache of any expired items in an asynchronous manner.
|
public AddImageToCacheAsync ( Stream stream, string contentType ) : System.Threading.Tasks.Task | ||
stream | Stream | /// The stream containing the image data. /// |
contentType | string | /// The content type of the image. /// |
return | System.Threading.Tasks.Task |
public DiskCache ( string requestPath, string fullPath, string querystring ) : System.Collections.Generic | ||
requestPath | string | /// The request path for the image. /// |
fullPath | string | /// The full path for the image. /// |
querystring | string | /// The querystring containing instructions. /// |
return | System.Collections.Generic |
public RewritePath ( |
||
context |
/// The |
|
return | void |
public TrimCacheAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |