C# 클래스 SharpArchitecture.MultiTenant.Web.MvcApplication

상속: System.Web.HttpApplication
파일 보기 프로젝트 열기: yellowfeather/SharpArchitecture-MultiTenant

공개 메소드들

메소드 설명
Init ( ) : void

보호된 메소드들

메소드 설명
Application_BeginRequest ( object sender, EventArgs e ) : void

Due to issues on IIS7, the NHibernate initialization cannot reside in Init() but must only be called once. Consequently, we invoke a thread-safe singleton class to ensure it's only initialized once.

Application_Error ( object sender, EventArgs e ) : void
Application_Start ( ) : void
InitializeServiceLocator ( ) : void

Instantiate the container and add all Controllers that derive from WindsorController to the container. Also associate the Controller with the WindsorContainer ControllerFactory.

비공개 메소드들

메소드 설명
InitializeMultiTenantNHibernateSession ( string mappingAssemblies, string configFile, Tenant tenant ) : void

Initializes the multi tenant NHibernate session.

InitializeMultiTenantNHibernateSessions ( string mappingAssemblies ) : void

Initializes the multi tenant NHibernate sessions.

InitializeNHibernateSession ( ) : void

If you need to communicate to multiple databases, you'd add a line to this method to initialize the other database as well.

UpdateCookie ( string cookieName, string cookieValue ) : void

메소드 상세

Application_BeginRequest() 보호된 메소드

Due to issues on IIS7, the NHibernate initialization cannot reside in Init() but must only be called once. Consequently, we invoke a thread-safe singleton class to ensure it's only initialized once.
protected Application_BeginRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

Application_Error() 보호된 메소드

protected Application_Error ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

Application_Start() 보호된 메소드

protected Application_Start ( ) : void
리턴 void

Init() 공개 메소드

public Init ( ) : void
리턴 void

InitializeServiceLocator() 보호된 메소드

Instantiate the container and add all Controllers that derive from WindsorController to the container. Also associate the Controller with the WindsorContainer ControllerFactory.
protected InitializeServiceLocator ( ) : void
리턴 void