public static Http Load(HttpRequest httpRequest, HttpRequestParameters requestParameters = null, string exportFile = null, bool setExportFileExtension = false) { RazSource(); __xmlDocumentSourceType = XmlDocumentSourceType.Http; //__http = __httpManager.Load(httpRequest, requestParameters); __http = HttpManager.CurrentHttpManager.Load(httpRequest, requestParameters, exportFile, setExportFileExtension); return __http; }
public static Http Load(HttpRequest httpRequest, HttpRequestParameters requestParameters = null, string exportFile = null, bool setExportFileExtension = false) { RazSource(); __xmlDocumentSourceType = XmlDocumentSourceType.Http; //__http = __httpManager.Load(httpRequest, requestParameters); __http = HttpManager.CurrentHttpManager.Load(httpRequest, requestParameters, exportFile, setExportFileExtension); return(__http); }
private static void RazSource() { _xdocumentSourceType = XmlDocumentSourceType.NoSource; _xdocument = null; _httpResult = null; _xmlFile = null; _html = null; }
public static HttpResult <string> LoadText(HttpRequest httpRequest) { RazSource(); _httpResult = _httpManager.LoadText(httpRequest); if (_httpResult.Success) { _xdocumentSourceType = XmlDocumentSourceType.Http; } return(_httpResult); }
private static void RazSource() { __xmlDocumentSourceType = XmlDocumentSourceType.NoSource; __xDocument = null; if (__http != null) { __http.Close(); __http = null; } __xmlFile = null; __html = null; }
public static void LoadHtmlString(string html) { RazSource(); __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile; __html = html; }
public static void LoadXmlFile(string file) { RazSource(); __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile; __xmlFile = file; }