C# 클래스 ImageProcessor.Web.Caching.ImageCacheBase

The image cache base provides methods for implementing the IImageCache interface. It is recommended that any implementations inherit from this class.
상속: IImageCache
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

보호된 프로퍼티들

프로퍼티 타입 설명
FullPath string
Querystring string
RequestPath string

공개 메소드들

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

보호된 메소드들

메소드 설명
AugmentSettings ( string>.Dictionary settings ) : void

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.

비공개 메소드들

메소드 설명
AugmentSettingsCore ( string>.Dictionary settings ) : string>.Dictionary

Provides an entry point to augmentation of the Settings dictionary

메소드 상세

AddImageToCacheAsync() 공개 추상적인 메소드

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

AugmentSettings() 보호된 메소드

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.
protected AugmentSettings ( string>.Dictionary settings ) : void
settings string>.Dictionary The current settings.
리턴 void

CreateCachedFileNameAsync() 공개 메소드

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

ImageCacheBase() 보호된 메소드

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

IsExpired() 보호된 메소드

Gets a value indicating whether the given images creation date is out with the prescribed limit.
protected IsExpired ( System.DateTime creationDate ) : bool
creationDate System.DateTime /// The creation date. ///
리턴 bool

IsNewOrUpdatedAsync() 공개 추상적인 메소드

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

RewritePath() 공개 추상적인 메소드

Rewrites the path to point to the cached image.
public abstract 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 abstract TrimCacheAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

프로퍼티 상세

FullPath 보호되어 있는 프로퍼티

The full path for the image.
protected string FullPath
리턴 string

Querystring 보호되어 있는 프로퍼티

The querystring containing processing instructions.
protected string Querystring
리턴 string

RequestPath 보호되어 있는 프로퍼티

The request path for the image.
protected string RequestPath
리턴 string