public override void Init() { base.Init(); // The WebSessionStorage must be created during the Init() to tie in HttpApplication events this.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() { base.Init(); this.webSessionStorage = new WebSessionStorage(this); }
private static void ConfigureData() { var storage = new WebSessionStorage(System.Web.HttpContext.Current.ApplicationInstance); DataConfig.Configure(storage); }