Esempio n. 1
0
 /// <summary>
 /// download fiel
 /// </summary>
 public void DownloadFile(string url, string downloadPath, ref string error)
 {
     try
     {
         PostHelper.DownloadFile(url, downloadPath, ref error);
     }
     catch (Exception exception)
     {
         string innerException = exception.InnerException == null ? "" : exception.InnerException.Message;
         string exc            = exception.Message;
         string methodName     = System.Reflection.MethodBase.GetCurrentMethod().Name;
         error = "Exception: " + exc + "; Inner Exception: " + innerException + "; Method Name: " + methodName;
     }
 }