예제 #1
0
 /// <summary>
 /// 从授码码得到授权用户
 /// </summary>
 /// <param name="code"></param>
 /// <returns></returns>
 public virtual AuthUser FromCode(string code)
 {
     return(AuthUser.Create(this, UserTokenStore, code));
 }
예제 #2
0
 /// <summary>
 /// 从缓存中得到授权用户
 /// </summary>
 /// <param name="openId"></param>
 /// <returns></returns>
 public virtual AuthUser FromCache(string openId)
 {
     return(AuthUser.CreateFromCache(this, UserTokenStore, openId));
 }