Beispiel #1
0
 public void AddLimit(params ApiLimit[] limit)
 {
     if (limit == null || !limit.Any())
     {
         return;
     }
     Limits.AddRange(limit);
     Limits = Limits.OrderByDescending <ApiLimit, TimeSpan>(p => p.Time).ToList();
 }
Beispiel #2
0
 public void Merge(Config other)
 {
     RegexOptions ^= other.RegexOptions;
     Limits.AddRange(other.Limits);
     Random  |= other.Random;
     Reverse |= other.Reverse;
     if (other.StringParam != null)
     {
         StringParam = other.StringParam;
     }
     if (other.RegexParam != null)
     {
         RegexParam = other.RegexParam;
     }
 }