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; }
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); }