示例#1
0
		private void IncrementRecord(TagRecord record)
		{
			record.MentionCount++;
			record.ExpirationDate = DateTime.Now + RecordLifetime;
		}
示例#2
0
		/// <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);
		}
示例#3
0
		private TagRecord CreateTagRecord(string tag)
		{
			string loweredTag = NormalizeTag(tag);
			var record = new TagRecord(loweredTag);
			_history[record.Tag] = record;
			return record;
		}