public void CheckExecutions(ExecutionLogInterface log)
{
int count = 0, errorCount = 0;
StringBuilder errorSummary = new StringBuilder("");
Repository repository = Repository.Instance.CreateFast();
try
{
log.Log("Starting Check Report Executions\r\n");
checkExecutions(log, repository.ReportsFolder, repository, ref count, ref errorCount, errorSummary);
log.Log("Checking personal folders\r\n");
checkExecutions(log, repository.PersonalFolder, repository, ref count, ref errorCount, errorSummary);
}
catch (Exception ex)
{
log.Log("\r\n[UNEXPECTED ERROR RECEIVED]\r\n{0}\r\n", ex.Message);
}
log.Log("Check Report Executions terminated\r\n");
log.Log("SUMMARY: {0} Report(s) checked, {1} Error(s) detected.\r\n{2}", count, errorCount, errorSummary);
if (errorCount == 0) log.Log("Youpi, pas d'erreur !");
}