// Token: 0x06000498 RID: 1176 RVA: 0x00018BD8 File Offset: 0x00016DD8 public static XElement FormatErrorElement(string message) { ArgumentValidator.ThrowIfNullOrWhiteSpace("message", message); XElement xelement = DiagnosticsFormatter.FormatRootElement(); xelement.Add(new XElement("Error", message)); return(xelement); }
// Token: 0x06000499 RID: 1177 RVA: 0x00018C10 File Offset: 0x00016E10 public static XElement FormatHelpElement(DiagnosticsArgument arguments) { ArgumentValidator.ThrowIfNull("arguments", arguments); XElement xelement = DiagnosticsFormatter.FormatRootElement(); xelement.Add(new XElement("Help", "Supported arguments: " + arguments.GetSupportedArguments())); return(xelement); }
public XElement Process(TimeBasedAssistantControllerWrapper[] assistantControllers) { ArgumentValidator.ThrowIfNull("assistantControllers", assistantControllers); IEnumerable <TimeBasedAssistantControllerWrapper> tbasToProcess; try { tbasToProcess = this.GetTbasToProcess(assistantControllers); } catch (UnknownAssistantException exception) { return(DiagnosticsFormatter.FormatErrorElement(exception)); } if (tbasToProcess == null) { return(DiagnosticsFormatter.FormatErrorElement("Could not find any TBA to provide diagnostics for.")); } XElement xelement = DiagnosticsFormatter.FormatRootElement(); foreach (TimeBasedAssistantControllerWrapper tba in tbasToProcess) { List <TimeBasedDatabaseDriver> databaseDriversToProcess; try { databaseDriversToProcess = this.dbProcessor.GetDatabaseDriversToProcess(tba); } catch (UnknownDatabaseException exception2) { return(DiagnosticsFormatter.FormatErrorElement(exception2)); } if (databaseDriversToProcess == null) { return(DiagnosticsFormatter.FormatErrorElement("Could not retrive the list of database drivers to process (null value).")); } if (databaseDriversToProcess.Count > 0) { XElement content = this.ProcessDiagnosticsForOneTba(tba, databaseDriversToProcess); xelement.Add(content); } } return(xelement); }