private void IncrementRecord(TagRecord record) { record.MentionCount++; record.ExpirationDate = DateTime.Now + RecordLifetime; }
/// <summary> /// Deletes a record from the history. /// </summary> /// <param name="record">The record to delete</param> public void Delete(TagRecord record) { if (record == null) { throw new ArgumentNullException("record"); } _history.Remove(record.Tag); }
private TagRecord CreateTagRecord(string tag) { string loweredTag = NormalizeTag(tag); var record = new TagRecord(loweredTag); _history[record.Tag] = record; return record; }