/// <summary> /// Does the download. /// </summary> /// <returns></returns> private enStatusType DoDownload(string customerCode, string siteCode, int manifestNumber) { enStatusType enStatus = enStatusType.Failure; try { bool downloadingPrefilledFiles = true; enStatus = DownloadFiles(customerCode, siteCode, manifestNumber, downloadingPrefilledFiles); } catch (Exception e) { string error = string.Format("Download failed for customer code {0}, site code {1}.\n", customerCode, siteCode); m_Utils.WriteEventLogEntry(error + e.Message, EventLogEntryType.Error, EVENT_LOG_SOURCE); } return(enStatus); }
/// <summary> /// Downloads specified manifest of pdf renditions. /// </summary> /// <returns></returns> public enStatusType DownloadPdfRenditionData(string downloaderServiceUrl, string customerCode, string siteCode, int manifestNumber) { ClearDownloadedFileTables(); ReadRegistry(); //Override registry value, since specified by client. m_strDownloadURL = downloaderServiceUrl; enStatusType enStatus = enStatusType.Failure; try { bool downloadingPrefilledFiles = false; enStatus = DownloadFiles(customerCode, siteCode, manifestNumber, downloadingPrefilledFiles); } catch (Exception e) { string error = string.Format("Download failed for customer code {0}, site code {1}.\n", customerCode, siteCode); m_Utils.WriteEventLogEntry(error + e.Message, EventLogEntryType.Error, EVENT_LOG_SOURCE); } return(enStatus); }