コード例 #1
0
 public static AppContextUserManager GetCurrentSingleton()
 {
     AppContextUserManager oSingleton;
     if (null != HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID])
     {
         oSingleton = (AppContextUserManager)HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID];
     }
     else
     {
         oSingleton = new AppContextUserManager();
         HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID] = oSingleton;
     }
     return oSingleton;
 }
コード例 #2
0
        public static AppContextUserManager GetCurrentSingleton()
        {
            AppContextUserManager oSingleton;

            if (null != HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID])
            {
                oSingleton = (AppContextUserManager)HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID];
            }
            else
            {
                oSingleton = new AppContextUserManager();
                HttpContext.Current.Session.Contents[AppContextUserManager.InstanceID] = oSingleton;
            }
            return(oSingleton);
        }