点击或拖拽改变大小
盛派网络

MessageAgentRequestNeuCharXmlAsync 方法

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

【异步方法】对接 NeuChar 平台,获取Xml结果,使用WeiWeiHiKey对接 WeiWeiHiKey的获取方式请看:

命名空间:  Senparc.NeuChar.Agents
程序集:  Senparc.NeuChar (在 Senparc.NeuChar.dll 中) 版本:1.4.400+9276a4a7db0d8fb887fc6634357928e7b33f68fa
语法
public static Task<string> RequestNeuCharXmlAsync(
	this IMessageHandlerBase messageHandler,
	IServiceProvider serviceProvider,
	string weiweihiKey,
	string xml,
	string neucharDomainName = "www.neuchar.com",
	int timeOut = 2500
)

参数

messageHandler
类型:Senparc.NeuChar.MessageHandlersIMessageHandlerBase
serviceProvider
类型:SystemIServiceProvider
.NET Core 的 ServiceProvider(.NET Framework 可设为 null)
weiweihiKey
类型:SystemString
xml
类型:SystemString
neucharDomainName (Optional)
类型:SystemString
timeOut (Optional)
类型:SystemInt32
代理请求超时时间(毫秒)

返回值

类型:TaskString

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 IMessageHandlerBase 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见