Exemple #1
0
 /// <summary>
 /// 确保access token provider已初始化
 /// </summary>
 /// <returns></returns>
 private AccessTokenProvider EnsureAccessTokenProvider()
 {
     if (mAccessTokenProvider == null)
     {
         lock (mTokenProviderLocker)
         {
             if (mAccessTokenProvider == null)
             {
                 mAccessTokenProvider = new AccessTokenProvider(this.AppID, this.AppSecurity);
             }
         }
     }
     return(mAccessTokenProvider);
 }
Exemple #2
0
 public JSAPITicketProvider(AccessTokenProvider provider)
 {
     this.mAccessTokenProvider = provider;
 }