public void Add(T value, int backingValue, string name)
 {
     if (!entriesFromRequests.IsKnownKey(backingValue))
     {
         entriesFromRequests.Add(value, backingValue, name);
     }
 }
Exemple #2
0
        internal int GetNextAvailableIndex()
        {
            LoadCache();

            int index = StartingIndex + 1;

            while (entriesFromFile.IsKnownKey(index) ||
                   entriesFromRequests.IsKnownKey(index) ||
                   BannedIDs.Contains(index))
            {
                index++;
            }

            return(index);
        }