C# 클래스 ImageMagick.Web.Handlers.MagickHandler

Base class for IHttpHandlers that use the IUrlResolver class.
상속: IHttpHandler, IRequiresSessionState
파일 보기 프로젝트 열기: dlemstra/Magick.NET

공개 메소드들

메소드 설명
ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

보호된 메소드들

메소드 설명
CanUseCache ( string cacheFileName ) : bool

Returns true if the cache file is newer then the file name that was resolved by the IUrlResolver.

GetCacheFileName ( string directoryName, string subdirectoryKey ) : string

Returns the file name that can be used to cache the result.

MagickHandler ( IUrlResolver urlResolver, MagickFormatInfo formatInfo ) : System

Initializes a new instance of the MagickHandler class.

MoveToCache ( string fileName, string cacheFileName ) : void

Moves to the specified source file name to the destination file name. This is happening in a lock to avoid problems when an other request is reading the file.

WriteFile ( HttpContext context ) : void

Writes the file to the response.

WriteFile ( HttpContext context, string fileName ) : void

Writes the specified file to the response.

비공개 메소드들

메소드 설명
AddCacheControlHeader ( HttpResponse response ) : void
CalculateMD5 ( string value ) : string
GetTempFileName ( ) : string
InitializeVersion ( ) : string
Write304 ( HttpContext content, System.DateTime fileDate ) : bool

메소드 상세

CanUseCache() 보호된 메소드

Returns true if the cache file is newer then the file name that was resolved by the IUrlResolver.
protected CanUseCache ( string cacheFileName ) : bool
cacheFileName string
리턴 bool

GetCacheFileName() 보호된 메소드

Returns the file name that can be used to cache the result.
protected GetCacheFileName ( string directoryName, string subdirectoryKey ) : string
directoryName string The name of the subdirectory to store the files in.
subdirectoryKey string The key that will be used to create MD5 hash and that /// will be used as a sub directory.
리턴 string

MagickHandler() 보호된 메소드

Initializes a new instance of the MagickHandler class.
protected MagickHandler ( IUrlResolver urlResolver, MagickFormatInfo formatInfo ) : System
urlResolver IUrlResolver
formatInfo MagickFormatInfo
리턴 System

MoveToCache() 보호된 정적인 메소드

Moves to the specified source file name to the destination file name. This is happening in a lock to avoid problems when an other request is reading the file.
protected static MoveToCache ( string fileName, string cacheFileName ) : void
fileName string
cacheFileName string
리턴 void

ProcessRequest() 공개 메소드

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An HttpContext object that provides references to the intrinsic /// server objects (for example, Request, Response, Session, and Server) used to service /// HTTP requests.
리턴 void

WriteFile() 보호된 추상적인 메소드

Writes the file to the response.
protected abstract WriteFile ( HttpContext context ) : void
context System.Web.HttpContext
리턴 void

WriteFile() 보호된 정적인 메소드

Writes the specified file to the response.
protected static WriteFile ( HttpContext context, string fileName ) : void
context System.Web.HttpContext
fileName string
리턴 void