public ArchiveFilesTicket GetAllTasksInfoBetween(DateTime startDate, DateTime endDate) { Common.Utility.LogDebug(string.Format("Start of method GetAllTasksInfoBetween for startDate: {0}, endDate: {1}", startDate, endDate)); if (!CheckDataCorrectness(startDate, endDate)) { Utility.LogError("Data for StatisticalGlobalCacheServiceImpl.GetAllTasksInfoBetween is incorrect"); return(null); } ArchiveFilesTicket result = null; try { result = CacheFactory.GetFactory().GetTaskDumper().GetTicketByDates(startDate, endDate); } catch (Exception ex) { Common.Utility.LogError(string.Format("Error of method GetAllTasksInfoBetween for startDate: {0}, endDate: {1}", startDate, endDate), ex); throw ex; } Common.Utility.LogDebug(string.Format("End of method GetAllTasksInfoBetween for startDate: {0}, endDate: {1}", startDate, endDate)); return(result); }
public Stream GetArchiveFile(string fileName) { Common.Utility.LogDebug(string.Format("Start of method GetArchiveFile for fileName: {0}", fileName)); if (!CheckDataCorrectness(fileName)) { Utility.LogError("Data for StatisticalGlobalCacheServiceImpl.GetArchiveFile is incorrect"); return(null); } Stream result = null; try { result = DataDumper.GetFileByName(CacheFactory.GetFactory().GetPathToBackUpFolder(), fileName); } catch (Exception ex) { Common.Utility.LogError(string.Format("Error of method GetArchiveFile for fileName: {0}", fileName), ex); throw ex; } Common.Utility.LogDebug(string.Format("End of method GetArchiveFile for fileName: {0}", fileName)); return(result); }