C# 클래스 BVNetwork.NotFound.Core.Custom404Handler

파일 보기 프로젝트 열기: BVNetwork/404handler

공개 메소드들

메소드 설명
FileNotFoundExceptionHandler ( object sender, EventArgs e ) : void
FileNotFoundHandler ( object sender, EventArgs evt ) : void
GetReferer ( Uri referer ) : string
HandleRequest ( string referer, Uri urlNotFound, BVNetwork.NotFound.Core.CustomRedirects.CustomRedirect &foundRedirect ) : bool

보호된 메소드들

메소드 설명
SetStatusCodeAndShow404 ( HttpContext context, int statusCode = 404 ) : void

비공개 메소드들

메소드 설명
CheckForException ( HttpContext context, Uri notFoundUri ) : bool
GetContext ( ) : HttpContext
IsLocalhost ( ) : bool

Determines whether the current request is on localhost.

IsResourceFile ( Uri notFoundUri ) : bool

Determines whether the specified not found URI is a resource file

메소드 상세

FileNotFoundExceptionHandler() 공개 정적인 메소드

public static FileNotFoundExceptionHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

FileNotFoundHandler() 공개 정적인 메소드

public static FileNotFoundHandler ( object sender, EventArgs evt ) : void
sender object
evt System.EventArgs
리턴 void

GetReferer() 공개 정적인 메소드

public static GetReferer ( Uri referer ) : string
referer System.Uri
리턴 string

HandleRequest() 공개 정적인 메소드

public static HandleRequest ( string referer, Uri urlNotFound, BVNetwork.NotFound.Core.CustomRedirects.CustomRedirect &foundRedirect ) : bool
referer string
urlNotFound System.Uri
foundRedirect BVNetwork.NotFound.Core.CustomRedirects.CustomRedirect
리턴 bool

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

protected static SetStatusCodeAndShow404 ( HttpContext context, int statusCode = 404 ) : void
context System.Web.HttpContext
statusCode int
리턴 void