public SenparcWeixinSettingItem(ISenparcWeixinSettingForWork setting, bool isDebug = false) { ItemKey = setting.ItemKey; WeixinCorpId = setting.WeixinCorpId; WeixinCorpAgentId = setting.WeixinCorpAgentId; WeixinCorpSecret = setting.WeixinCorpSecret; WeixinCorpToken = setting.WeixinCorpToken; WeixinCorpEncodingAESKey = setting.WeixinCorpEncodingAESKey; }
public OAuth2Controller() { _workWeixinSetting = Senparc.Weixin.Config.SenparcWeixinSetting["企业微信OAuth2.0"]; _corpId = _workWeixinSetting.WeixinCorpId; _corpSecret = _workWeixinSetting.WeixinCorpSecret; }
public WorkCustomMessageHandler(Stream inputStream, PostModel postModel, int maxRecordCount = 0, IServiceProvider serviceProvider = null) : base(inputStream, postModel, maxRecordCount, serviceProvider: serviceProvider) { _workSetting = Senparc.Weixin.Config.SenparcWeixinSetting.WorkSetting; }
/// <summary> /// 注册应用凭证信息,此操作只是注册,不会马上获取Token,并将清空之前的Token。 /// 执行此注册过程,会连带注册ProviderTokenContainer。 /// </summary> /// <param name="corpId">corpId</param> /// <param name="corpSecret">corpSecret</param> /// 此接口无异步方法 public static string BuildingKey(ISenparcWeixinSettingForWork setting) { return(BuildingKey(setting.WeixinCorpId, setting.WeixinCorpSecret)); }