Пример #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;
 }