public void HandleAliOHResponse(HttpContext context) { this.context = context; string str1 = context.Request["sign"]; string str2 = context.Request["biz_content"]; string str3 = context.Request["sign_type"]; string str4 = context.Request["service"]; this.request = XmlSerialiseHelper.Deserialize <AliRequest>(str2); IHandle handle = (IHandle)null; switch (this.request.EventType) { case "verifygw": handle = (IHandle) new VerifyGateWayHandle(); break; case "follow": handle = (IHandle) new UserFollowHandle(); break; } if (handle == null) { return; } handle.client = this; handle.LocalRsaPriKey = this.privateKey; handle.LocalRsaPubKey = this.pubKey; handle.AliRsaPubKey = this.aliPubKey; string s = handle.Handle(str2); context.Response.AddHeader("Content-Type", "application/xml"); context.Response.Write(s); }
public void HandleAliOHResponse(HttpContext context) { this.context = context; string text = context.Request["sign"]; string text2 = context.Request["biz_content"]; string text3 = context.Request["sign_type"]; string text4 = context.Request["service"]; this.request = XmlSerialiseHelper.Deserialize <AliRequest>(text2); IHandle handle = null; string eventType = this.request.EventType; if (eventType != null) { if (!(eventType == "verifygw")) { if (eventType == "follow") { handle = new UserFollowHandle(); } } else { handle = new VerifyGateWayHandle(); } } if (handle != null) { handle.client = this; handle.LocalRsaPriKey = this.privateKey; handle.LocalRsaPubKey = this.pubKey; handle.AliRsaPubKey = this.aliPubKey; string s = handle.Handle(text2); context.Response.AddHeader("Content-Type", "application/xml"); context.Response.Write(s); } }
public string GetBizContent() { return(XmlSerialiseHelper.Serialise <Message>(this.message)); }