public override void Init() { base.Init(); // The WebSessionStorage must be created during the Init() to tie in HttpApplication events webSessionStorage = new WebSessionStorage(this); }
/// <summary> /// 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. /// </summary> public override void Init() { this.webSessionStorage = new WebSessionStorage(this); }
public override void Init() { base.Init(); webSessionStorage = new WebSessionStorage(this); }