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

Castle.Windsor의 Container를 제공하는 HttpApplication 입니다.
IoC와 관련한 초기화를 수행해 준다. Web Application의 global.asax에서 Inherits="NSoft.NFramework.Web.IocHttpApplication" 를 추가하면 됩니다.
Inheritance: System.Web.HttpApplication, IContainerAccessor
Mostra file Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
Application_Start ( object sender, EventArgs e ) : void
WindsorHttpApplication ( ) : System

Initialize a new instance of IocHttpApplication.

Protected Methods

Method Description
ExecutePrefetchTask ( ) : void

HttpApplication 시작 시에 미리 실행하면, 성능상 잇점이 있는 작업을 비동기적으로 수행하도록 합니다.

InitializeIoC ( ) : void

IoC를 초기화합니다.

OnBeginRequest ( object sender, EventArgs e ) : void

Web Application의 요청 처리 전에 사전 준비 사항을 처리한다.

OnDisposed ( object sender, EventArgs e ) : void

HttpApplication이 메모리에서 제거될 때 발생하는 이벤트의 처리기

OnEndRequest ( object sender, EventArgs e ) : void

Web Application의 요청 처리 후 사후 처리를 한다. (실제 처리하는 것은 없고, 재정의가 가능하도록 남겨두었다.)

OnError ( object sender, EventArgs e ) : void

Web Application에서 예외가 발생한 경우 발생하는 이벤트의 처리기

SetUpContainer ( ) : IWindsorContainer

Windsor Container를 초기화하여 반환합니다. IWindsorInstaller 를 이용한 초기화를 수행할 수 있습니다.

Private Methods

Method Description
Initialize ( ) : void

Method Details

Application_Start() public method

public Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ExecutePrefetchTask() protected method

HttpApplication 시작 시에 미리 실행하면, 성능상 잇점이 있는 작업을 비동기적으로 수행하도록 합니다.
protected ExecutePrefetchTask ( ) : void
return void

InitializeIoC() protected method

IoC를 초기화합니다.
protected InitializeIoC ( ) : void
return void

OnBeginRequest() protected method

Web Application의 요청 처리 전에 사전 준비 사항을 처리한다.
protected OnBeginRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnDisposed() protected method

HttpApplication이 메모리에서 제거될 때 발생하는 이벤트의 처리기
protected OnDisposed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnEndRequest() protected method

Web Application의 요청 처리 후 사후 처리를 한다. (실제 처리하는 것은 없고, 재정의가 가능하도록 남겨두었다.)
protected OnEndRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnError() protected method

Web Application에서 예외가 발생한 경우 발생하는 이벤트의 처리기
protected OnError ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SetUpContainer() protected method

Windsor Container를 초기화하여 반환합니다. IWindsorInstaller 를 이용한 초기화를 수행할 수 있습니다.
protected SetUpContainer ( ) : IWindsorContainer
return IWindsorContainer

WindsorHttpApplication() public method

Initialize a new instance of IocHttpApplication.
public WindsorHttpApplication ( ) : System
return System