Пример #1
0
 /// <summary>
 /// 获取单例对象
 /// </summary>
 /// <returns></returns>
 internal static MpTokenManager Instance()
 {
     if (_instance == null)
     {
         lock (lockObject)
         {
             if (_instance == null)
             {
                 _instance = new MpTokenManager();
             }
         }
     }
     return(_instance);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="manager"></param>
 /// <returns></returns>
 public static MpTokenManager Mp(this TokenManager manager)
 {
     return(MpTokenManager.Instance());
 }