C# 클래스 Aqueduct.Web.WebApplicationInitialiser

It is used to make initialision of components easier and remove the clutter from Application start. If actions need to be initialised on FirstRequest then a call to BeginRequestHandler should be inserted in Application_BeginRequest WebApplicationInitialiser.Setup(this, initActionList => { initActionList.Add(new DefaultConfigInitialiser()); // initialises the webconfig initActionList.AddOnStartAction(app => /* init logic here */ Logging.Initialise); });
파일 보기 프로젝트 열기: aqueduct/Aqueduct.SitecoreLib

공개 메소드들

메소드 설명
HandleBeginRequest ( System.Web.HttpApplication app ) : void

Used to initialise all OnFirstRequest actions

Should be called on Application_BeginRequest inside Global.asax

HandleBeginRequest ( object sender, EventArgs e ) : void
Setup ( System.Web.HttpApplication application, Action addActionLists ) : void

Used to Setup the list of initialisation actions and executes all OnApplicationStart actions

Setup ( System.Web.HttpApplication app, InitialisationActionList actions ) : void

Used to Setup the list of initialisation actions and executes all OnApplicationStart actions

비공개 메소드들

메소드 설명
RunAllActionsWithState ( System.Web.HttpApplication app, InitialisationStage initState ) : void
ValidateTheWebApplicationInitialiserModuleIsIncluded ( System.Web.HttpApplication app ) : void

메소드 상세

HandleBeginRequest() 공개 정적인 메소드

Used to initialise all OnFirstRequest actions
Should be called on Application_BeginRequest inside Global.asax
public static HandleBeginRequest ( System.Web.HttpApplication app ) : void
app System.Web.HttpApplication Current HttpApplication object
리턴 void

HandleBeginRequest() 공개 정적인 메소드

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

Setup() 공개 정적인 메소드

Used to Setup the list of initialisation actions and executes all OnApplicationStart actions
public static Setup ( System.Web.HttpApplication application, Action addActionLists ) : void
application System.Web.HttpApplication Current HttpApplication object
addActionLists Action Delegate with ActionList to which InitialisionActions can be added
리턴 void

Setup() 공개 정적인 메소드

Used to Setup the list of initialisation actions and executes all OnApplicationStart actions
public static Setup ( System.Web.HttpApplication app, InitialisationActionList actions ) : void
app System.Web.HttpApplication Current HttpApplication object
actions InitialisationActionList A list of initialisation actions
리턴 void