Property | Type | Description | |
---|---|---|---|
FullPath | string | ||
Querystring | string | ||
RequestPath | string |
Method | Description | |
---|---|---|
AddImageToCacheAsync ( Stream stream, string contentType ) : System.Threading.Tasks.Task |
Adds the image to the cache in an asynchronous manner.
|
|
CreateCachedFileNameAsync ( ) : Task |
Gets a string identifying the cached file name.
|
|
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.
|
Method | Description | |
---|---|---|
AugmentSettings ( string>.Dictionary |
Provides a means to augment the cache settings taken from the configuration in derived classes. This allows for configuration of cache objects outside the normal configuration files, for example by using app settings in the Azure platform.
|
|
ImageCacheBase ( string requestPath, string fullPath, string querystring ) : System |
Initializes a new instance of the ImageCacheBase class.
|
|
IsExpired ( System.DateTime creationDate ) : bool |
Gets a value indicating whether the given images creation date is out with the prescribed limit.
|
Method | Description | |
---|---|---|
AugmentSettingsCore ( string>.Dictionary |
Provides an entry point to augmentation of the Settings dictionary
|
public abstract 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 |
protected AugmentSettings ( string>.Dictionary |
||
settings | string>.Dictionary | The current settings. |
return | void |
protected ImageCacheBase ( string requestPath, string fullPath, string querystring ) : System | ||
requestPath | string | /// The request path for the image. /// |
fullPath | string | /// The full path for the image. /// |
querystring | string | /// The querystring containing instructions. /// |
return | System |
protected IsExpired ( System.DateTime creationDate ) : bool | ||
creationDate | System.DateTime | /// The creation date. /// |
return | bool |
public abstract IsNewOrUpdatedAsync ( ) : Task |
||
return | Task |
public abstract RewritePath ( |
||
context |
/// The |
|
return | void |
public abstract TrimCacheAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |