C# Class NSoft.NFramework.Web.HttpApplications.AsyncHttpApplicationBase

Lazy Pattern을 이용하여, 웹 Application 시작 시에 미리 준비해야 할 작업이 있다면, 그 작업을 비동기적으로 실행시켜줍니다. 이렇게 하면, 실제 데이터를 필요로 할 때, 미리 준비된 데이터를 사용할 수 있으므로, 성능상에 유리하게 됩니다.
Application_Start, Session_Start, Session_End, Application_End 시점에 비동기적으로 실행할 메소드를 재정의하면, 각 싯점마다, 비동기적으로 실행해줍니다.
Inheritance: System.Web.HttpApplication
Show file Open project: debop/NFramework

Public Methods

Method Description
Application_Disposed ( object sender, EventArgs e ) : void

HttpApplication 인스턴스들이 Dispose 될 때마다 호출된다.

Application_End ( object sender, EventArgs e ) : void

마지막 HttpApplication 인스턴스가 Dispose 될 때 호출된다.

Application_Error ( object sender, EventArgs e ) : void

HttpApplication에서 예외가 발생했을 때 호출되는 이벤트 핸들러입니다. 기본적으로는 예외에 대한 내용을 로그로 작성하는 작업을 수행합니다)

Application_Start ( object sender, EventArgs e ) : void

HttpApplication Instance 중 첫번째 인스턴스만 호출되는 이벤트입니다.

Init ( ) : void
Session_End ( object sender, EventArgs e ) : void

Timeout에 의해, 혹은 사용자의 로그아웃에 의해 Session이 끝났을 때 발생하는 이벤트입니다.

Session_Start ( object sender, EventArgs e ) : void

Session이 시작했을 때 발생하는 이벤트입니다.

Protected Methods

Method Description
ApplicationDisposedAfter ( HttpContext context ) : void

Application_Disposed 시에 비동기적으로 실행할 작업입니다.

ApplicationEndAfter ( HttpContext context ) : void

Application_End 시에 비동기적으로 실행할 작업입니다.

ApplicationErrorAfter ( HttpContext context, Exception exception ) : void

Application_Error 시에 비동기적으로 실행할 작업입니다. (기본적으로는 로그에 쓰는 작업을 합니다) overriding 시 base method를 호출해 주셔야합니다.

ApplicationInitAfter ( HttpContext context ) : void

Application_Init 시에 실행할 비동기 작업의 본체입니다.

ApplicationStartAfter ( HttpContext context ) : void

Application_Start 시에 실행할 비동기 작업의 본체입니다.

AsyncHttpApplicationBase ( ) : System
OnBeginRequest ( object sender, EventArgs e ) : void

Client 요청 처리 시작 이벤트입니다.

OnEndRequest ( object sender, EventArgs e ) : void

모든 요청을 처리하고, 마무리하는 단계입니다.

OnPostRequestHandlerExecute ( object sender, EventArgs e ) : void

Page 작업이 완료된 후 바로 수행되는 단계입니다.

OnPreRequestHandlerExecute ( object sender, EventArgs e ) : void

Client 요청 처리 사전 작업의 마지막 단계입니다. 이 이벤트 처리기 이후에는 바로 Page 관련 작업을 수행합니다.

SessionEndAfter ( HttpContext context ) : void

Session_End 시에 비동기적으로 실행할 작업입니다.

SessionStartAfter ( HttpContext context ) : void

Session_Start 시에 비동기적으로 실행할 작업입니다.

Method Details

ApplicationDisposedAfter() protected method

Application_Disposed 시에 비동기적으로 실행할 작업입니다.
protected ApplicationDisposedAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

ApplicationEndAfter() protected method

Application_End 시에 비동기적으로 실행할 작업입니다.
protected ApplicationEndAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

ApplicationErrorAfter() protected method

Application_Error 시에 비동기적으로 실행할 작업입니다. (기본적으로는 로그에 쓰는 작업을 합니다) overriding 시 base method를 호출해 주셔야합니다.
protected ApplicationErrorAfter ( HttpContext context, Exception exception ) : void
context System.Web.HttpContext 현재 Context 정보
exception System.Exception Web Applicatoin 예외 정보
return void

ApplicationInitAfter() protected method

Application_Init 시에 실행할 비동기 작업의 본체입니다.
protected ApplicationInitAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

ApplicationStartAfter() protected method

Application_Start 시에 실행할 비동기 작업의 본체입니다.
protected ApplicationStartAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

Application_Disposed() public method

HttpApplication 인스턴스들이 Dispose 될 때마다 호출된다.
public Application_Disposed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_End() public method

마지막 HttpApplication 인스턴스가 Dispose 될 때 호출된다.
public Application_End ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_Error() public method

HttpApplication에서 예외가 발생했을 때 호출되는 이벤트 핸들러입니다. 기본적으로는 예외에 대한 내용을 로그로 작성하는 작업을 수행합니다)
public Application_Error ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_Start() public method

HttpApplication Instance 중 첫번째 인스턴스만 호출되는 이벤트입니다.
public Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

AsyncHttpApplicationBase() protected method

protected AsyncHttpApplicationBase ( ) : System
return System

Init() public method

public Init ( ) : void
return void

OnBeginRequest() protected method

Client 요청 처리 시작 이벤트입니다.
protected OnBeginRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnEndRequest() protected method

모든 요청을 처리하고, 마무리하는 단계입니다.
protected OnEndRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnPostRequestHandlerExecute() protected method

Page 작업이 완료된 후 바로 수행되는 단계입니다.
protected OnPostRequestHandlerExecute ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnPreRequestHandlerExecute() protected method

Client 요청 처리 사전 작업의 마지막 단계입니다. 이 이벤트 처리기 이후에는 바로 Page 관련 작업을 수행합니다.
protected OnPreRequestHandlerExecute ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SessionEndAfter() protected method

Session_End 시에 비동기적으로 실행할 작업입니다.
protected SessionEndAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

SessionStartAfter() protected method

Session_Start 시에 비동기적으로 실행할 작업입니다.
protected SessionStartAfter ( HttpContext context ) : void
context System.Web.HttpContext
return void

Session_End() public method

Timeout에 의해, 혹은 사용자의 로그아웃에 의해 Session이 끝났을 때 발생하는 이벤트입니다.
public Session_End ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Session_Start() public method

Session이 시작했을 때 발생하는 이벤트입니다.
public Session_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void