private void Timer_Elapsed(object _) { try { var maxAge = MaxAge; foreach (var reportName in _reportRepository.GetAvailableReports()) { if (DateTime.UtcNow - reportName.StartTime > maxAge) { try { _reportRepository.DeleteReport(reportName); } catch (Exception x) { s_logger.Error(null, x); } } } } catch (Exception x) { s_logger.Error(null, x); } }
public void Delete() { _reportRepository.DeleteReport(_reportProxy.Name); }
public void DeleteReport(SynchronizationReportName name) { _inner.DeleteReport(name); }