コード例 #1
0
 /// <summary>
 /// This method closes the XmlReader member and the used <see cref="HttpClientUtil"/> instance.
 /// </summary>
 public void Dispose()
 {
     if (_XmlReader != null)
     {
         _XmlReader.Close();
     }
     if (_HttpClientUtil != null)
     {
         _HttpClientUtil.Close();
     }
 }
コード例 #2
0
 /// <summary>
 /// Sets a new XML document.
 /// </summary>
 /// <param name="httpClientUtil">A configured <see cref="HttpClientUtil"/> instance for performing web requests</param>
 public void SetDocumentToParse(HttpClientUtil httpClientUtil)
 {
     try
     {
         initializeXPathObjects(httpClientUtil.GetDataStream());
     }
     finally
     {
         httpClientUtil.Close();
     }
 }
コード例 #3
0
 /// <summary>
 /// Sets a new XML document. 
 /// </summary>
 /// <param name="httpClientUtil">A configured <see cref="HttpClientUtil"/> instance for performing web requests</param>
 public void SetDocumentToParse(HttpClientUtil httpClientUtil)
 {
     try
     {
         initializeXPathObjects(httpClientUtil.GetDataStream());
     }
     finally
     {
         httpClientUtil.Close();
     }
 }