C# Class SharpArchTemplate.Web.Mvc.MvcApplication

Represents the MVC Application
For instructions on enabling IIS6 or IIS7 classic mode, visit http://go.microsoft.com/?LinkId=9394801
Inheritance: System.Web.HttpApplication
Afficher le fichier Open project: sharparchitecture/Sharp-Architecture-Template

Méthodes publiques

Méthode Description
Init ( ) : void

Due to issues on IIS7, the NHibernate initialization must occur in Init(). But Init() may be invoked more than once; accordingly, we introduce a thread-safe mechanism to ensure it's only initialized once. See http://msdn.microsoft.com/en-us/magazine/cc188793.aspx for explanation details.

RegisterGlobalFilters ( GlobalFilterCollection filters ) : void

Méthodes protégées

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

Private Methods

Méthode Description
InitialiseNHibernateSessions ( ) : void

Method Details

Application_BeginRequest() protected méthode

protected Application_BeginRequest ( 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

Due to issues on IIS7, the NHibernate initialization must occur in Init(). But Init() may be invoked more than once; accordingly, we introduce a thread-safe mechanism to ensure it's only initialized once. See http://msdn.microsoft.com/en-us/magazine/cc188793.aspx for explanation details.
public Init ( ) : void
Résultat void

InitializeServiceLocator() protected méthode

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

RegisterGlobalFilters() public static méthode

public static RegisterGlobalFilters ( GlobalFilterCollection filters ) : void
filters GlobalFilterCollection
Résultat void