예제 #1
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Ticket,并将清空之前的Ticket,
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 public static void Register(string appId, string appSecret)
 {
     JsApiTicketCollection[appId] = new JsApiTicketBag()
     {
         AppId             = appId,
         AppSecret         = appSecret,
         ExpireTime        = DateTime.MinValue,
         JsApiTicketResult = new JsApiTicketResult()
     };
 }
예제 #2
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Ticket,并将清空之前的Ticket,
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 public static void Register(string appId, string appSecret)
 {
     JsApiTicketCollection[appId] = new JsApiTicketBag()
     {
         AppId = appId,
         AppSecret = appSecret,
         ExpireTime = DateTime.MinValue,
         JsApiTicketResult = new JsApiTicketResult()
     };
 }