本文整理汇总了C#中IronWASP.Response.GetClone方法的典型用法代码示例。如果您正苦于以下问题:C# Response.GetClone方法的具体用法?C# Response.GetClone怎么用?C# Response.GetClone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IronWASP.Response
的用法示例。
在下文中一共展示了Response.GetClone方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Trigger
public Trigger(string RequestTrigger, Request Req, string ResponseTrigger, Response Res)
{
this.RequestTrigger = RequestTrigger;
this.Request = Req.GetClone();
this.ResponseTrigger = ResponseTrigger;
this.Response = Res.GetClone();
}
示例2: Trigger
public Trigger(string RequestTrigger, string RequestTriggerDescription, Request Req, string ResponseTrigger, string ResponseTriggerDescription, Response Res)
{
this.RequestTrigger = RequestTrigger;
this.RequestTriggerDescription = RequestTriggerDescription;
this.Request = Req.GetClone();
this.ResponseTrigger = ResponseTrigger;
this.RawResponseTriggerDescription = ResponseTriggerDescription;
this.Response = Res.GetClone();
}
示例3: Is
public virtual bool Is(Response Response)
{
try
{
Response Res = Response.GetClone();
string XmlString = ToXmlFromResponse(Res);
if (!Tools.IsXml(XmlString)) return false;
Response FinalRes = ToResponseFromXml(Res, XmlString);
if (Res.ToString().Equals(FinalRes.ToString())) return true;
}
catch { return false; }
return false;
}
示例4: AddShellResponse
internal static void AddShellResponse(Response Response)
{
if (Response != null)
{
try
{
Response ClonedResponse = Response.GetClone(true);
if (ClonedResponse != null)
{
lock (ShellResponseQ)
{
ShellResponseQ.Enqueue(ClonedResponse);
}
}
else
Tools.Trace("IronUpdater", "Null Shell Response");
}
catch (Exception Exp)
{
IronException.Report("Error adding Shell Response for updating", Exp.Message, Exp.StackTrace);
}
}
}