Ejemplo n.º 1
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Token,并将清空之前的Token,
 /// </summary>
 /// <param name="componentAppId"></param>
 /// <param name="componentAppSecret"></param>
 public static void Register(string componentAppId, string componentAppSecret)
 {
     PreAuthCodeCollection[componentAppId] = new PreAuthCodeBag()
     {
         ComponentAppId     = componentAppId,
         ComponentAppSecret = componentAppSecret,
         ExpireTime         = DateTime.MinValue,
         PreAuthCodeResult  = new PreAuthCodeResult()
     };
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 注册应用凭证信息,此操作只是注册,不会马上获取Token,并将清空之前的Token,
 /// </summary>
 /// <param name="componentAppId"></param>
 /// <param name="componentAppSecret"></param>
 public static void Register(string componentAppId, string componentAppSecret)
 {
     PreAuthCodeCollection[componentAppId] = new PreAuthCodeBag()
     {
         ComponentAppId = componentAppId,
         ComponentAppSecret = componentAppSecret,
         ExpireTime = DateTime.MinValue,
         PreAuthCodeResult = new PreAuthCodeResult()
     };
 }