Méthode | Description | |
---|---|---|
AddImageToCacheAsync ( Stream stream, string contentType ) : System.Threading.Tasks.Task |
Adds the image to the cache in an asynchronous manner.
|
|
AzureBlobCache ( string requestPath, string fullPath, string querystring ) : System |
Initializes a new instance of the AzureBlobCache class.
|
|
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.
|
Méthode | Description | |
---|---|---|
CreateContainer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient cloudBlobClient, string containerName, BlobContainerPublicAccessType accessType ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer |
Returns the cache container, creating a new one if none exists.
|
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. /// |
Résultat | System.Threading.Tasks.Task |
public AzureBlobCache ( 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 query string containing instructions. /// |
Résultat | System |
public CreateCachedFileNameAsync ( ) : Task |
||
Résultat | Task |
public RewritePath ( |
||
context |
/// The |
|
Résultat | void |
public TrimCacheAsync ( ) : System.Threading.Tasks.Task | ||
Résultat | System.Threading.Tasks.Task |