/// <summary> /// Generate the status report of the site's inventory /// </summary> /// <param name="pathReport"></param> private void Execute_GenerateSiteInventoryFile(string pathReport) { _statusLog.AddStatusHeader("Generate site inventory CSV"); try { var reportGenerator = new CustomerSiteInventory( this.ProjectsList, this.DatasourcesList, this.WorkbooksList, this.UsersList, this.GroupsList, _statusLog); reportGenerator.GenerateCSVFile(pathReport); //Store the path to the report we just generated _pathGeneratedSiteInventoryReportCsv = pathReport; } catch (Exception ex) { StatusLog.AddError("Error generating inventory report: " + ex.ToString()); } }
/// <summary> /// Generate the status report of the site's inventory /// </summary> /// <param name="pathReport"></param> private void Execute_GenerateSiteInventoryFile(string pathReport) { _statusLog.AddStatusHeader("Generate site inventory CSV"); try { var reportGenerator = new CustomerSiteInventory( this.ProjectsList, this.DatasourcesList, this.WorkbooksList, this.UsersList, this.GroupsList, _statusLog); reportGenerator.GenerateCSVFile(pathReport); //Store the path to the report we just generated _pathGeneratedSiteInventoryReportCsv = pathReport; } catch (Exception ex) { StatusLog.AddError("Error generating inventory report: " + ex.ToString()); } }