public void Append(LocalizedString msg, MailboxSizeRec mailboxSizeRec, ReportEntryFlags flags) { this.Append(new ReportEntry(msg) { MailboxSize = mailboxSizeRec, Flags = (flags | ReportEntryFlags.MailboxSize) }); }
public void Append(LocalizedString msg, ConfigurableObjectXML configObject, ReportEntryFlags flags) { this.Append(new ReportEntry(msg) { ConfigObject = configObject, Flags = (flags | ReportEntryFlags.ConfigObject) }); }
public void Append(LocalizedString msg, FailureRec failureRec, ReportEntryFlags flags) { this.Append(new ReportEntry(msg, ReportEntryType.Error) { Failure = failureRec, Flags = (flags | ReportEntryFlags.Failure) }); }
public void Append(LocalizedString msg, Exception failure, ReportEntryFlags flags) { this.Append(new ReportEntry(msg, ReportEntryType.Error) { Failure = FailureRec.Create(failure), Flags = (flags | ReportEntryFlags.Failure) }); }
public void Append(RequestJobTimeTracker timeTracker, ReportEntryFlags flags) { ThrottleDurations sourceThrottleDurations; ThrottleDurations targetThrottleDurations; timeTracker.GetThrottledDurations(out sourceThrottleDurations, out targetThrottleDurations); ReportEntry reportEntry = new ReportEntry(); reportEntry.Flags = flags; if ((flags & ReportEntryFlags.SourceThrottleDurations) != ReportEntryFlags.None) { reportEntry.SourceThrottleDurations = sourceThrottleDurations; } if ((flags & ReportEntryFlags.TargetThrottleDurations) != ReportEntryFlags.None) { reportEntry.TargetThrottleDurations = targetThrottleDurations; } this.Append(reportEntry); }
public ReportEntry(LocalizedString message, ReportEntryType type, Exception failure, ReportEntryFlags flags) { this.Message = message; this.CreationTime = (DateTime)ExDateTime.UtcNow; this.ServerName = CommonUtils.LocalShortComputerName; this.Type = type; this.Flags = flags; if (failure != null) { this.Failure = FailureRec.Create(failure); this.Flags |= ReportEntryFlags.Failure; } }