public void Remove(ErrorConfig conf) { if (BaseIndexOf(conf) >= 0) { BaseRemove(conf.Code); } }
public bool NeedAlertAboutError(ErrorConfig error) { if (!error.Enabled) return false; lock (s_errorOccursCountDictSync) { if (_errorOccursCountDict.ContainsKey(error.Code)) _errorOccursCountDict[error.Code] += 1; else _errorOccursCountDict[error.Code] = 1; return _errorOccursCountDict[error.Code] >= Limit; } }
public bool NeedAlertAboutError(ErrorConfig error) { if (!error.Enabled) { return(false); } lock (s_errorOccursCountDictSync) { if (_errorOccursCountDict.ContainsKey(error.Code)) { _errorOccursCountDict[error.Code] += 1; } else { _errorOccursCountDict[error.Code] = 1; } return(_errorOccursCountDict[error.Code] >= Limit); } }
public void Remove(ErrorConfig conf) { if (BaseIndexOf(conf) >= 0) BaseRemove(conf.Code); }
public int IndexOf(ErrorConfig conf) { return BaseIndexOf(conf); }
public void Add(ErrorConfig conf) { BaseAdd(conf); }
public void Add(ErrorConfig conf) { BaseAdd(conf); }
public int IndexOf(ErrorConfig conf) { return(BaseIndexOf(conf)); }