예제 #1
0
        Hashtable Transform(RestResponse restResponse)
        {
            var result = XmlExtensions.ToHash(restResponse.Content);

            result[DefensioResult.HttpStatusCodeKey] = restResponse.HttpStatusCode;
            return(result);
        }
예제 #2
0
 /// <summary>
 /// Parses the HTTP callback received by Defensio after an asynchronous Document/POST.
 /// </summary>
 /// <param name="content">The XML data received in Defensio's callback.</param>
 /// <returns>The result of the analysis.</returns>
 public static Hashtable HandlePostDocumentAsyncCallback(string content)
 {
     return(XmlExtensions.ToHash(content));
 }