/// <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() }; }