AccessToken及JsApiTicket包
Inheritance: Senparc.Weixin.Containers.BaseContainerBag
コード例 #1
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Token,并将清空之前的Token,
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 private static void Register(string appId, string appSecret)
 {
     AccessTokenCollection[appId] = new AccessTokenBag()
     {
         AppId             = appId,
         AppSecret         = appSecret,
         ExpireTime        = DateTime.MinValue,
         AccessTokenResult = new AccessTokenResult()
     };
 }
コード例 #2
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Token,并将清空之前的Token,
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 public static void Register(string appId, string appSecret)
 {
     AccessTokenCollection[appId] = new AccessTokenBag()
     {
         AppId = appId,
         AppSecret = appSecret,
         ExpireTime = DateTime.MinValue,
         AccessTokenResult = new AccessTokenResult()
     };
 }