Ejemplo n.º 1
0
 public void DownloadFile(String Url, String FileName)
 {
     for (int RetryCount = 1; true; RetryCount++)
     {
         try
         {
             HttpClient httpClient = new HttpClient();
             httpClient.DownloadFile(Url, FileName);
             return;
         }
         catch (Exception ex)
         {
             if (RetryCount == MaxRetryCount)
             {
                 throw ex;
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void DownloadFile(String Url, String FileName)
 {
     for (int RetryCount = 1 ; true ; RetryCount++)
     {
         try
         {
             HttpClient httpClient = new HttpClient();
             httpClient.DownloadFile(Url, FileName);
             return;
         }
         catch (Exception ex)
         {
             if (RetryCount == MaxRetryCount)
                 throw ex;
         }
     }
 }
Ejemplo n.º 3
0
 public void DownloadFile(String FileName)
 {
     httpClient.DownloadFile(Url, FileName);
 }