// Token: 0x06000496 RID: 1174 RVA: 0x00018B18 File Offset: 0x00016D18 public static XElement FormatWindowJobHistory(string dbName, Guid dbGuid, DiagnosticsSummaryDatabase dbSummary, DiagnosticsSummaryJobWindow[] windowJobHistory) { ArgumentValidator.ThrowIfNullOrWhiteSpace("dbName", dbName); ArgumentValidator.ThrowIfEmpty("dbGuid", dbGuid); ArgumentValidator.ThrowIfNull("dbSummary", dbSummary); ArgumentValidator.ThrowIfNull("windowJobHistory", windowJobHistory); XElement xelement = DiagnosticsFormatter.FormatTimeBasedJobDatabaseStatsCommon(dbName, dbGuid, dbSummary); XElement xelement2 = new XElement("WindowJobs"); foreach (XElement content in windowJobHistory.Select(new Func <DiagnosticsSummaryJobWindow, XElement>(DiagnosticsFormatter.FormatTimeBasedJobWindowHistoryEntry))) { xelement2.Add(content); } xelement.Add(xelement2); return(xelement); }
// Token: 0x06000494 RID: 1172 RVA: 0x00018994 File Offset: 0x00016B94 public static XElement FormatTimeBasedJobDatabaseStatsCommon(string dbName, Guid dbGuid, DiagnosticsSummaryDatabase dbSummary) { ArgumentValidator.ThrowIfNullOrWhiteSpace("dbName", dbName); ArgumentValidator.ThrowIfEmpty("dbGuid", dbGuid); ArgumentValidator.ThrowIfNull("dbSummary", dbSummary); XElement xelement = new XElement("MailboxDatabase", new XAttribute("Name", dbName)); xelement.Add(new XElement("Guid", dbGuid)); xelement.Add(new XElement("IsAssistantEnabled", dbSummary.IsAssistantEnabled.ToString().ToLower(CultureInfo.InvariantCulture))); xelement.Add(new XElement("StartTime", dbSummary.StartTime.ToString("O", CultureInfo.InvariantCulture))); return(xelement); }
// Token: 0x06000495 RID: 1173 RVA: 0x00018A58 File Offset: 0x00016C58 public static XElement FormatTimeBasedMailboxes(bool formatActive, string dbName, Guid dbGuid, DiagnosticsSummaryDatabase dbSummary, IEnumerable <Guid> mailboxCollection) { ArgumentValidator.ThrowIfNullOrWhiteSpace("dbName", dbName); ArgumentValidator.ThrowIfEmpty("dbGuid", dbGuid); ArgumentValidator.ThrowIfNull("dbSummary", dbSummary); ArgumentValidator.ThrowIfNull("mailboxCollection", mailboxCollection); string expandedName = formatActive ? "Running" : "Queued"; XElement xelement = DiagnosticsFormatter.FormatTimeBasedJobDatabaseStatsCommon(dbName, dbGuid, dbSummary); XElement xelement2 = new XElement(expandedName); foreach (Guid guid in mailboxCollection) { XElement content = new XElement("MailboxGuid", guid); xelement2.Add(content); } xelement.Add(xelement2); return(xelement); }
// Token: 0x06000493 RID: 1171 RVA: 0x0001892C File Offset: 0x00016B2C public static XElement FormatTimeBasedJobDatabaseStats(string dbName, Guid dbGuid, DiagnosticsSummaryDatabase dbSummary) { ArgumentValidator.ThrowIfNullOrWhiteSpace("dbName", dbName); ArgumentValidator.ThrowIfEmpty("dbGuid", dbGuid); ArgumentValidator.ThrowIfNull("dbSummary", dbSummary); XElement xelement = DiagnosticsFormatter.FormatTimeBasedJobDatabaseStatsCommon(dbName, dbGuid, dbSummary); XElement content = DiagnosticsFormatter.FormatTimeBasedJobMailboxStatsWindow("WindowJob", dbSummary.WindowJobStatistics); XElement content2 = DiagnosticsFormatter.FormatTimeBasedJobMailboxStats("OnDemandJobs", dbSummary.OnDemandJobsStatistics); xelement.Add(content); xelement.Add(content2); return(xelement); }