C# 클래스 ImageProcessor.Web.Plugins.AzureBlobCache.AzureBlobCache

Provides an IImageCache implementation that uses Azure blob storage. The cache is self healing and cleaning.
상속: ImageProcessor.Web.Caching.ImageCacheBase
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
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 ( HttpContext context ) : void

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.

비공개 메소드들

메소드 설명
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.

메소드 상세

AddImageToCacheAsync() 공개 메소드

Adds the image to the cache 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. ///
리턴 System.Threading.Tasks.Task

AzureBlobCache() 공개 메소드

Initializes a new instance of the AzureBlobCache class.
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. ///
리턴 System

CreateCachedFileNameAsync() 공개 메소드

Gets a string identifying the cached file name.
public CreateCachedFileNameAsync ( ) : Task
리턴 Task

IsNewOrUpdatedAsync() 공개 메소드

Gets a value indicating whether the image is new or updated in an asynchronous manner.
public IsNewOrUpdatedAsync ( ) : Task
리턴 Task

RewritePath() 공개 메소드

Rewrites the path to point to the cached image.
public RewritePath ( HttpContext context ) : void
context System.Web.HttpContext /// The encapsulating all information about the request. ///
리턴 void

TrimCacheAsync() 공개 메소드

Trims the cache of any expired items in an asynchronous manner.
public TrimCacheAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task