| ComponentContainerRegister 方法 |
Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】!
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!
NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039
注意:此 API 现在已过时。
命名空间:
Senparc.Weixin.Open.Containers
程序集:
Senparc.Weixin.Open (在 Senparc.Weixin.Open.dll 中) 版本:4.6.0.26160
语法 [ObsoleteAttribute("请使用 RegisterAsync() 方法")]
public static void Register(
string componentAppId,
string componentAppSecret,
Func<string, Task<string>> getComponentVerifyTicketFunc,
Func<string, string, Task<string>> getAuthorizerRefreshTokenFunc,
Action<string, string, RefreshAuthorizerTokenResult> authorizerTokenRefreshedFunc,
string name = null
)
<ObsoleteAttribute("请使用 RegisterAsync() 方法")>
Public Shared Sub Register (
componentAppId As String,
componentAppSecret As String,
getComponentVerifyTicketFunc As Func(Of String, Task(Of String)),
getAuthorizerRefreshTokenFunc As Func(Of String, String, Task(Of String)),
authorizerTokenRefreshedFunc As Action(Of String, String, RefreshAuthorizerTokenResult),
Optional name As String = Nothing
)
参数
- componentAppId
- 类型:SystemString
- componentAppSecret
- 类型:SystemString
- getComponentVerifyTicketFunc
- 类型:SystemFuncString, TaskString
- getAuthorizerRefreshTokenFunc
- 类型:SystemFuncString, String, TaskString
- authorizerTokenRefreshedFunc
- 类型:SystemActionString, String, RefreshAuthorizerTokenResult
- name (Optional)
- 类型:SystemString
参见