C# Class Senparc.Weixin.WxOpen.RequestMessageFactory

RequestMessage消息处理方法工厂类
ファイルを表示 Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
GetRequestEntity ( Stream stream ) : IRequestMessageBase

获取内容为XML的Stream转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常

GetRequestEntity ( System.Xml.Linq.XDocument doc, PostModel postModel = null ) : IRequestMessageBase

获取XDocument转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常

GetRequestEntity ( string xml ) : IRequestMessageBase

获取XML转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常

Method Details

GetRequestEntity() public static method

获取内容为XML的Stream转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常
public static GetRequestEntity ( Stream stream ) : IRequestMessageBase
stream Stream 如Request.InputStream
return IRequestMessageBase

GetRequestEntity() public static method

获取XDocument转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常
public static GetRequestEntity ( System.Xml.Linq.XDocument doc, PostModel postModel = null ) : IRequestMessageBase
doc System.Xml.Linq.XDocument
postModel Senparc.Weixin.WxOpen.Entities.Request.PostModel
return IRequestMessageBase

GetRequestEntity() public static method

获取XML转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常
public static GetRequestEntity ( string xml ) : IRequestMessageBase
xml string
return IRequestMessageBase