/// <summary> /// 适用于只有一个appid的情况 /// </summary> /// <param name="cacheManager"></param> /// <param name="option"></param> public WeChatAccessTokenManager(AccessTokenCacheManager cacheManager, WeChatAccessOption option) : this(cacheManager) { if (option != null) { SetOption(option); } }
internal void SetOption(WeChatAccessOption option) { cacheManager.Add(option.AppId, option.AppSecret); }