C# 클래스 EnterpriseWebLibrary.EnterpriseWebFramework.EwfApp

The HttpApplication class for a web site using EWF. Provides access to the authenticated user, handles errors, and performs other useful functions.
상속: System.Web.HttpApplication
파일 보기 프로젝트 열기: enduracode/enterprise-web-library 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BaseUrlOverrideGetter Func

Private Properties

프로퍼티 타입 설명
ExecuteWithBasicExceptionHandling void
GetDefaultBaseUrl string
GetRequestAppRelativeUrl string
Init void
getErrorPage System.PageInfo
getQueryParameters IEnumerable
getRequestBaseUrl string
getTransferPath string
handleAuthenticateRequest void
handleBeginRequest void
handleEndRequest void
handleError void
handleErrorIfOnErrorPage bool
handleErrorIfOnHandledErrorPage bool
handleErrorIfOnUnhandledExceptionPage bool
handlePostAuthenticateRequest void
rewritePathIfShortcutUrl void
set500StatusCode void
setStatusCode void
transferRequest void

공개 메소드들

메소드 설명
GetPageViewDataModificationMethod ( ) : System.Action

Returns a method that executes data modifications that happen simply because of a request and require no other action by the user. Returns null if there are no modifications, which can improve page performance since the data-access cache does not need to be reset. WARNING: Don't ever use this to correct for missing loadData preconditions. For example, do not create a page that requires a user preferences row to exist and then use a page-view data modification to create the row if it is missing. Page-view data modifications will not execute before the first loadData call on post-back requests, and we provide no mechanism to do this because it would allow developers to accidentally cause false user concurrency errors by modifying data that affects the rendering of the page.

SendHealthCheck ( ) : void

Standard library use only.

보호된 메소드들

메소드 설명
EwfApp ( ) : System

Registers event handlers for certain application events.

GetJavaScriptFiles ( ) : List

Creates and returns a list of JavaScript files that should be included on all EWF pages, including those not using the EWF user interface.

GetMediaTypeOverrides ( ) : IEnumerable

Gets the Internet media type overrides for the application, which are used when serving static files. Do not return null.

GetShortcutUrlResolvers ( ) : IEnumerable

Gets the shortcut URL resolvers for the application.

GetStyleSheets ( ) : List

Creates and returns a list of custom style sheets that should be used on all EWF pages, including those not using the EWF user interface.

RequestIsSecure ( HttpRequest request ) : bool

Returns true if the specified request is secure. Override this to be more than just HttpRequest.IsSecureConnection if you are using a reverse proxy to perform SSL termination. Remember that your implementation should support not just live installations, but also development and intermediate installations.

getRequestBasePath ( HttpRequest request ) : string

Returns the base path for the specified request. Override this if you are using a reverse proxy and are changing the base path. Never return null. Return the empty string to represent the root path. Remember that your implementation should support not just live installations, but also development and intermediate installations.

getRequestHost ( HttpRequest request ) : string

Returns the host name for the specified request. Override this if you are using a reverse proxy that is changing the Host header. Include the port number in the return value if it is not the default port. Never return null. If the host name is unavailable (i.e. the request uses HTTP 1.0 and does not include a Host header), return the empty string, which will cause a 400 status code to be returned. Remember that your implementation should support not just live installations, but also development and intermediate installations.

비공개 메소드들

메소드 설명
ExecuteWithBasicExceptionHandling ( System.Action handler, bool setErrorInRequestState, bool set500StatusCode ) : void
GetDefaultBaseUrl ( bool secure ) : string
GetRequestAppRelativeUrl ( HttpRequest request, bool disableLeadingSlashRemoval = false ) : string
Init ( Type globalType, AppMetaLogicFactory metaLogicFactory ) : void
getErrorPage ( System.PageInfo ewfErrorPage ) : System.PageInfo
getQueryParameters ( string url ) : IEnumerable
getRequestBaseUrl ( HttpRequest request ) : string
getTransferPath ( EnterpriseWebLibrary.EnterpriseWebFramework.ResourceInfo resource ) : string
handleAuthenticateRequest ( object sender, EventArgs e ) : void
handleBeginRequest ( object sender, EventArgs e ) : void
handleEndRequest ( object sender, EventArgs e ) : void
handleError ( object sender, EventArgs e ) : void

This method will not work properly unless the application is initialized, RequestState is not null, and the authenticated user is available.

handleErrorIfOnErrorPage ( string errorEvent, Exception exception ) : bool
handleErrorIfOnHandledErrorPage ( string errorEvent, Exception exception ) : bool
handleErrorIfOnUnhandledExceptionPage ( string errorEvent, Exception exception ) : bool
handlePostAuthenticateRequest ( object sender, EventArgs e ) : void
rewritePathIfShortcutUrl ( ) : void
set500StatusCode ( string description ) : void
setStatusCode ( int code ) : void
transferRequest ( System.PageInfo page, bool completeRequest ) : void

메소드 상세

EwfApp() 보호된 메소드

Registers event handlers for certain application events.
protected EwfApp ( ) : System
리턴 System

GetJavaScriptFiles() 보호된 메소드

Creates and returns a list of JavaScript files that should be included on all EWF pages, including those not using the EWF user interface.
protected GetJavaScriptFiles ( ) : List
리턴 List

GetMediaTypeOverrides() 보호된 메소드

Gets the Internet media type overrides for the application, which are used when serving static files. Do not return null.
protected GetMediaTypeOverrides ( ) : IEnumerable
리턴 IEnumerable

GetPageViewDataModificationMethod() 공개 메소드

Returns a method that executes data modifications that happen simply because of a request and require no other action by the user. Returns null if there are no modifications, which can improve page performance since the data-access cache does not need to be reset. WARNING: Don't ever use this to correct for missing loadData preconditions. For example, do not create a page that requires a user preferences row to exist and then use a page-view data modification to create the row if it is missing. Page-view data modifications will not execute before the first loadData call on post-back requests, and we provide no mechanism to do this because it would allow developers to accidentally cause false user concurrency errors by modifying data that affects the rendering of the page.
public GetPageViewDataModificationMethod ( ) : System.Action
리턴 System.Action

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

Gets the shortcut URL resolvers for the application.
protected abstract GetShortcutUrlResolvers ( ) : IEnumerable
리턴 IEnumerable

GetStyleSheets() 보호된 메소드

Creates and returns a list of custom style sheets that should be used on all EWF pages, including those not using the EWF user interface.
protected GetStyleSheets ( ) : List
리턴 List

RequestIsSecure() 보호된 메소드

Returns true if the specified request is secure. Override this to be more than just HttpRequest.IsSecureConnection if you are using a reverse proxy to perform SSL termination. Remember that your implementation should support not just live installations, but also development and intermediate installations.
protected RequestIsSecure ( HttpRequest request ) : bool
request System.Web.HttpRequest
리턴 bool

SendHealthCheck() 공개 메소드

Standard library use only.
public SendHealthCheck ( ) : void
리턴 void

getRequestBasePath() 보호된 메소드

Returns the base path for the specified request. Override this if you are using a reverse proxy and are changing the base path. Never return null. Return the empty string to represent the root path. Remember that your implementation should support not just live installations, but also development and intermediate installations.
protected getRequestBasePath ( HttpRequest request ) : string
request System.Web.HttpRequest
리턴 string

getRequestHost() 보호된 메소드

Returns the host name for the specified request. Override this if you are using a reverse proxy that is changing the Host header. Include the port number in the return value if it is not the default port. Never return null. If the host name is unavailable (i.e. the request uses HTTP 1.0 and does not include a Host header), return the empty string, which will cause a 400 status code to be returned. Remember that your implementation should support not just live installations, but also development and intermediate installations.
protected getRequestHost ( HttpRequest request ) : string
request System.Web.HttpRequest
리턴 string

프로퍼티 상세

BaseUrlOverrideGetter 공개적으로 정적으로 프로퍼티

public static Func BaseUrlOverrideGetter
리턴 Func