/// <summary> /// Adds the specified token and <see cref="ICaptchaValue" /> to the storage. /// </summary> /// <param name="captchaPair"> /// The specified <see cref="KeyValuePair{TKey,TValue}" /> /// </param> public virtual void Add(KeyValuePair <string, ICaptchaValue> captchaPair) { Validate.ArgumentNotNull(captchaPair.Value, "captchaPair"); DrawingKeys.ClearIfNeed(MaxCount); ValidateKeys.ClearIfNeed(MaxCount); var entry = new KeyTimeEntry <string>(captchaPair.Key); DrawingKeys.Add(entry, captchaPair.Value); ValidateKeys.Add(entry, captchaPair.Value); }