<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

DictionaryBase

public abstract class DictionaryBase : IDictionary
Base class for all DictionaryBase types. This class is responsible for ensuring data does not go stale. On value access, if the dictionary has not been accessed in a period of time specified by ValueRefreshThreshold, the values will be refreshed by a call to the abstract UpdateValues().
protected string _sectionName

public int Count { get; }

The number of key/value pairs in this DictionaryBase.

public bool IsFixedSize { get; }

Gets a value indicating whether the DictionaryBase has a fixed size.

public bool IsReadOnly { get; }

Gets a value indicating whether this DictionaryBase is read-only.

public bool IsSynchronized { get; }

Gets a value indicating whether access to this DictionaryBase is synchronized (thread-safe).

public object this[object key] { get; set; }

Gets the configuration value specified by the given key.

public ICollection Keys { get; }

Gets an ICollection containing the keys in this DictionaryBase.

public object SyncRoot { get; }

Gets an object that can be used to synchronize access to this DictionaryBase.

public ICollection Values { get; }

Gets an ICollection containing the values in this DictionaryBase.

protected DictionaryBase(string sectionName, Collection valuesCollection)

Initializes a new instance of DictionaryBase with the given section name and collection of values.

public void Add(object key, object value)

Adds an element with the specified key and value into this DictionaryBase

public void Clear()

Removes all elements from this DictionaryBase.

public bool Contains(object key)

Determines whether this DictionaryBase contains a specific key.

public void CopyTo(Array array, int index)

Copies the DictionaryBase elements to a one-dimensional System.Array instance at the specified index.

Gets an IDictionaryEnumerator that iterates through this DictionaryBase.

Gets an IDictionaryEnumerator that iterates through this DictionaryBase.

protected void LogError(Exception ex, string messageTemplate, object[] propertyValues)

public void Remove(object key)

Removes the element with the specified key from this DictionaryBase.

protected abstract void UpdateValues()

Base member for updating the underlying configuration values.