예제 #1
0
 private static void SetSession(AppManagerSession appManagerSession)
 {
     if (HttpContext.Current != null)
     {
         HttpContext.Current.Session["arquitetura_session"] = appManagerSession;
     }
 }
예제 #2
0
 private static AppManagerSession GetSession()
 {
     if (HttpContext.Current == null)
     {
         if (_appSession == null)
         {
             _appSession = new AppManagerSession();
         }
         return(_appSession);
     }
     else
     {
         var appManagerSession = (AppManagerSession)HttpContext.Current.Session["arquitetura_session"];
         if (appManagerSession == null)
         {
             appManagerSession = new AppManagerSession();
             FormsAuthentication.SignOut();
         }
         return(appManagerSession);
     }
 }
예제 #3
0
 private static AppManagerSession GetSession()
 {
     if (HttpContext.Current == null)
     {
         if (_appSession == null)
         {
             _appSession = new AppManagerSession();
         }
         return _appSession;
     }
     else
     {
         var appManagerSession = (AppManagerSession)HttpContext.Current.Session["arquitetura_session"];
         if (appManagerSession == null)
         {
             appManagerSession = new AppManagerSession();
             FormsAuthentication.SignOut();
         }
         return appManagerSession;
     }
 }
예제 #4
0
 private static void SetSession(AppManagerSession appManagerSession)
 {
     if (HttpContext.Current != null)
         HttpContext.Current.Session["arquitetura_session"] = appManagerSession;
 }