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