Tag Archives: ISession NHibernate EndRequest HttpApplication

HttpApplication EndRequest Event Invoked Many Times In Single Request?

By | December 14, 2008

The other day I was putting the last touch of a temporary way to manage the NHibernate session (ISession) in Bunian. So part of the task was to bind a method to the HttpApplication EndRequest event (in the Global.asax.cs file) like the following: public override void Init() {        this.EndRequest += WorkContext.NHibernateSessionManager.Instance.HttpRequestEnded; } By doing… Read More »