示例#1
0
文件: HttpRun.cs 项目: labeuze/source
 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;
 }
示例#2
0
 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);
 }
示例#3
0
 private static void RazSource()
 {
     _xdocumentSourceType = XmlDocumentSourceType.NoSource;
     _xdocument           = null;
     _httpResult          = null;
     _xmlFile             = null;
     _html = null;
 }
示例#4
0
 public static HttpResult <string> LoadText(HttpRequest httpRequest)
 {
     RazSource();
     _httpResult = _httpManager.LoadText(httpRequest);
     if (_httpResult.Success)
     {
         _xdocumentSourceType = XmlDocumentSourceType.Http;
     }
     return(_httpResult);
 }
示例#5
0
 private static void RazSource()
 {
     __xmlDocumentSourceType = XmlDocumentSourceType.NoSource;
     __xDocument             = null;
     if (__http != null)
     {
         __http.Close();
         __http = null;
     }
     __xmlFile = null;
     __html    = null;
 }
示例#6
0
文件: HttpRun.cs 项目: labeuze/source
 private static void RazSource()
 {
     __xmlDocumentSourceType = XmlDocumentSourceType.NoSource;
     __xDocument = null;
     if (__http != null)
     {
         __http.Close();
         __http = null;
     }
     __xmlFile = null;
     __html = null;
 }
示例#7
0
 public static void LoadHtmlString(string html)
 {
     RazSource();
     __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile;
     __html = html;
 }
示例#8
0
 public static void LoadXmlFile(string file)
 {
     RazSource();
     __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile;
     __xmlFile = file;
 }
示例#9
0
文件: HttpRun.cs 项目: labeuze/source
 public static void LoadHtmlString(string html)
 {
     RazSource();
     __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile;
     __html = html;
 }
示例#10
0
文件: HttpRun.cs 项目: labeuze/source
 public static void LoadXmlFile(string file)
 {
     RazSource();
     __xmlDocumentSourceType = XmlDocumentSourceType.XmlFile;
     __xmlFile = file;
 }