C# Class Senparc.Weixin.MP.Sample.Controllers.WeixinAsyncController

此Controller为异步Controller(Action),使用异步线程处理并发请求。 为了方便演示,此Controller中没有加入多余的日志记录等示例,保持了最简单的Controller写法。日志等其他操作可以参考WeixinController.cs。 提示:异步Controller并不是在任何情况下都能提升效率(响应时间),当请求量非常小的时候反而会增加一定的开销。
Inheritance: System.Web.Mvc.AsyncController
显示文件 Open project: JeffreySu/WeiXinMPSDK

Public Properties

Property Type Description
AppId string
EncodingAESKey string
Token string

Public Methods

Method Description
ForTest ( ) : Task

为测试并发性能而建

WeixinAsyncController ( ) : System

Private Methods

Method Description
Index ( string signature, string timestamp, string nonce, string echostr ) : Task
MiniPost ( PostModel postModel ) : Task

Method Details

ForTest() public method

为测试并发性能而建
public ForTest ( ) : Task
return Task

WeixinAsyncController() public method

public WeixinAsyncController ( ) : System
return System

Property Details

AppId public_oe static_oe property

public static string AppId
return string

EncodingAESKey public_oe static_oe property

public static string EncodingAESKey
return string

Token public_oe static_oe property

public static string Token
return string