C# 클래스 BlogEngine.Core.Web.HttpHandlers.FileHandler

The FileHandler serves all files that is uploaded from the admin pages except for images.
By using a HttpHandler to serve files, it is very easy to add the capability to stop bandwidth leeching or to create a statistics analysis feature upon it.
상속: IHttpHandler
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

공개 메소드들

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

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

비공개 메소드들

메소드 설명
OnBadRequest ( string file ) : void

Called when [bad request].

OnServed ( string file ) : void

Called when [served].

OnServing ( string file ) : void

Called when [serving].

SetContentType ( HttpContext context, string fileName ) : void

Sets the content type depending on the filename's extension.

메소드 상세

ProcessRequest() 공개 메소드

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