C# Class NSoft.NFramework.Web.HttpHandlers.MultiFileHttpHandler

Inheritance: AbstractHttpAsyncHandler
Exibir arquivo Open project: debop/NFramework

Protected Methods

Method Description
DoProcessRequest ( HttpContext context ) : void

HttpContext의 요청정보를 바탕으로 HttpHandler의 실제 작업을 처리하는 메소드입니다.

Private Methods

Method Description
GetCacheKey ( string setName, string fileName, string version ) : string

캐시 키로 사용할 문자열을 만듭니다.

IsWebResource ( string uriString ) : bool

지정한 경로가 웹 리소스를 나타내는지 확인합니다.

ParseRequestParams ( HttpContext context ) : void

Parameter 정보를 파싱해서, 원하는 결과를 만듭니다.

ReadFileTask ( HttpContext context, string virtualPath ) : Task

지정된 경로에서 리소스를 읽어오는 Task{byte[]}를 빌드합니다.

ReadFiles ( HttpContext context ) : byte[]
SaveToCache ( HttpContext context, string key, System.Web.Caching.CacheItem cacheItem, System.TimeSpan duration ) : void

서버 메모리 캐시에 파일 정보를 저장합니다

SetResponseHeaders ( HttpResponse response, System.Web.Caching.CacheItem item, System.TimeSpan cacheDuration ) : void
WriteBytes ( HttpContext context, System.Web.Caching.CacheItem item, System.TimeSpan cacheDuration ) : void

요청 파일의 정보를 응답 스트림에 씁니다.

WriteFromCache ( HttpContext context, string cacheKey, System.TimeSpan cacheDuration ) : bool

캐시에 저장된 정보가 있다면, 그 정보를 Client에게 보냅니다.

Method Details

DoProcessRequest() protected method

HttpContext의 요청정보를 바탕으로 HttpHandler의 실제 작업을 처리하는 메소드입니다.
protected DoProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void