コード例 #1
0
ファイル: Global.asax.cs プロジェクト: seif/Northwind
        public override void Init()
        {
            base.Init();

            // The WebSessionStorage must be created during the Init() to tie in HttpApplication events
            this.webSessionStorage = new WebSessionStorage(this);
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
ファイル: StartUp.cs プロジェクト: RichardPAsch/PIMS
 private static void ConfigureData()
 {
     var storage = new WebSessionStorage(System.Web.HttpContext.Current.ApplicationInstance);
     DataConfig.Configure(storage);
 }