protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             _requestStream.Close();
             WebResponse response = _webClient.GetWebResponse(_request);
             _webClient._openResponseStream = response.GetResponseStream();
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
Exemplo n.º 2
0
 public Stream GetResponseStream()
 {
     return(_webClient.GetWebResponse(_request).GetResponseStream());
 }