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