Beispiel #1
0
 public void Remove(ErrorConfig conf)
 {
     if (BaseIndexOf(conf) >= 0)
     {
         BaseRemove(conf.Code);
     }
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 public void Remove(ErrorConfig conf)
 {
     if (BaseIndexOf(conf) >= 0)
         BaseRemove(conf.Code);
 }
Beispiel #5
0
 public int IndexOf(ErrorConfig conf)
 {
     return BaseIndexOf(conf);
 }
Beispiel #6
0
 public void Add(ErrorConfig conf)
 {
     BaseAdd(conf);
 }
Beispiel #7
0
 public void Add(ErrorConfig conf)
 {
     BaseAdd(conf);
 }
Beispiel #8
0
 public int IndexOf(ErrorConfig conf)
 {
     return(BaseIndexOf(conf));
 }