C# Класс SharpArchitecture.MultiTenant.Web.MvcApplication

Наследование: System.Web.HttpApplication
Показать файл Открыть проект

Открытые методы

Метод Описание
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