C# 클래스 WhoCanHelpMe.Web.Code.HttpRequestExtensions

Contains extension methods for the HttpRequest object.
파일 보기 프로젝트 열기: jongeorge1/Who-Can-Help-Me

공개 메소드들

메소드 설명
IsStaticFile ( this request ) : bool

Examines the request to see if the current file is a static file (i.e. .htm, .css, .js)

RequiresAuthentication ( this request ) : bool

Examines the request to see if the current file needs to be authenticated

Because IIS7 runs in integrated mode, non aspx files are handled by the ASP.NET runtime. This function allows us to specify a list of file types that are safe to ignore. This function can be used to prevent expensive authentication logic from being executed for static files.

메소드 상세

IsStaticFile() 공개 정적인 메소드

Examines the request to see if the current file is a static file (i.e. .htm, .css, .js)
public static IsStaticFile ( this request ) : bool
request this /// The current HttpRequest ///
리턴 bool

RequiresAuthentication() 공개 정적인 메소드

Examines the request to see if the current file needs to be authenticated
Because IIS7 runs in integrated mode, non aspx files are handled by the ASP.NET runtime. This function allows us to specify a list of file types that are safe to ignore. This function can be used to prevent expensive authentication logic from being executed for static files.
public static RequiresAuthentication ( this request ) : bool
request this /// The current HttpRequest ///
리턴 bool