Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 475 Bytes
using System;
using System.Collections.Generic;
namespace cake
{
public class BuildHistory
{
private readonly Dictionary<string, GenerationRecord> _records = new Dictionary<string, GenerationRecord>();
public void AddRecord(GenerationRecord record)
{
_records[record.TargetFile] = record;
}
public GenerationRecord FindRecordFor(string targetFile)
{
GenerationRecord result;
_records.TryGetValue(targetFile,out result);
return result;
}
}
}
Something went wrong with that request. Please try again.