Hashtable Transform(RestResponse restResponse) { var result = XmlExtensions.ToHash(restResponse.Content); result[DefensioResult.HttpStatusCodeKey] = restResponse.HttpStatusCode; return(result); }
/// <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)); }