internal void LogResults(ReplayCrimsonEvent crimsonEvent, TimeSpan suppressDuration) { if (suppressDuration != TimeSpan.Zero) { crimsonEvent.LogPeriodicGeneric(this.Server, suppressDuration, new object[] { this.Server.NetbiosName, this.IsActionCalledTooSoonPerNode, this.IsActionCalledTooSoonAcrossDag, this.IsMaxActionsPerNodeExceeded, this.IsMaxActionsAcrossDagExceeded, this.GetStringOrNull(this.MostRecentActionDataForNode), this.GetStringOrNull(this.MostRecentActionDataAcrossDag), this.ActionsCountPerNode, this.ActionsCountAcrossDag, this.MinDurationBetweenActionsPerNode, this.MaxCheckDurationPerNode, this.MaxAllowedActionsPerNode, this.MinDurationBetweenActionsAcrossDag, this.MaxCheckDurationAcrossDag, this.MaxAllowedActionsAcrossDag }); return; } crimsonEvent.LogGeneric(new object[] { this.Server.NetbiosName, this.GetStringOrNull(this.MostRecentActionDataForNode), this.GetStringOrNull(this.MostRecentActionDataAcrossDag), this.ActionsCountPerNode, this.ActionsCountAcrossDag, this.MinDurationBetweenActionsPerNode, this.MaxCheckDurationPerNode, this.MaxAllowedActionsPerNode, this.MinDurationBetweenActionsAcrossDag, this.MaxCheckDurationAcrossDag, this.MaxAllowedActionsAcrossDag }); }
public void ReportServerFailure(AmServerName server, string serverCheckThatFailed, string errorMessage, ReplayCrimsonEvent evt, params object[] evtArgs) { AmBcsServerFailureLogger.AmBcsCheckInfo checkInfo = new AmBcsServerFailureLogger.AmBcsCheckInfo(AmBcsServerFailureLogger.AmBcsCheckType.ServerLevel, serverCheckThatFailed); this.ReportFailureInternal(server, checkInfo, errorMessage, true, evt, evtArgs); }
private void ReportFailureInternal(AmServerName server, AmBcsServerFailureLogger.AmBcsCheckInfo checkInfo, string errorMessage, bool overwriteAllowed, ReplayCrimsonEvent evt, params object[] evtArgs) { OrderedDictionary orderedDictionary; if (this.m_failureTable.ContainsKey(server)) { orderedDictionary = this.m_failureTable[server]; } else { orderedDictionary = new OrderedDictionary(10); this.m_failureTable.Add(server, orderedDictionary); } string str; bool flag = !this.TryGetErrorFromCheckTable(orderedDictionary, checkInfo, out str) || (overwriteAllowed && !SharedHelper.StringIEquals(str, errorMessage)); if (flag) { this.AddErrorIntoCheckTable(orderedDictionary, checkInfo, errorMessage); if (this.IsEventLoggingEnabled) { evt.LogGeneric(evtArgs); return; } } else { AmTrace.Debug("BCS: Failure for server '{0}' and check [{1}] has already been recorded. Suppressing raising another event.", new object[] { server, checkInfo }); } }
// Token: 0x060006E1 RID: 1761 RVA: 0x00020DD0 File Offset: 0x0001EFD0 public void ReportServerFailure(AmServerName server, string serverCheckThatFailed, string errorMessage, ReplayCrimsonEvent evt, params object[] evtArgs) { this.SetErrorIfApplicable(false, errorMessage); }