예제 #1
0
        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);
            }
        }
예제 #2
0
 public void Delete()
 {
     _reportRepository.DeleteReport(_reportProxy.Name);
 }
 public void DeleteReport(SynchronizationReportName name)
 {
     _inner.DeleteReport(name);
 }