Esempio n. 1
0
 /// <summary>
 /// 单例
 /// </summary>
 /// <returns></returns>
 public static XSession GetInstance()
 {
     if (instance == null)
     {
         instance = new XSession();
     }
     return(instance);
 }
Esempio n. 2
0
 /// <summary>
 /// 单例
 /// </summary>
 /// <returns></returns>
 public static XSession GetInstance(HttpSessionState session)
 {
     if (instance == null)
     {
         XSession.instance = new XSession();
         XSession.session  = session;
     }
     return(instance);
 }