C# Class WebBase.MvcApplication

Inheritance: System.Web.HttpApplication
Afficher le fichier Open project: sztupy/shaml

Méthodes publiques

Méthode Description
Init ( ) : void

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

Application_BeginRequest() protected méthode

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
Résultat void

Application_Error() protected méthode

protected Application_Error ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Application_Start() protected méthode

protected Application_Start ( ) : void
Résultat void

Init() public méthode

public Init ( ) : void
Résultat void