public ChecksumScope( ChecksumTreeNodeCacheCollection caches, ChecksumTreeNodeCache cache, SolutionChecksumObject solutionChecksum) { _caches = caches; _cache = cache; SolutionChecksum = solutionChecksum; _caches.RegisterSnapshot(this, cache); }
public AssetBuilder(ChecksumTreeNodeCache checksumTree) { _checksumTree = checksumTree; _serializer = checksumTree.Serializer; }
public void RegisterSnapshot(ChecksumScope snapshot, ChecksumTreeNodeCache cache) { // duplicates are not allowed, there can be multiple snapshots to same solution, so no ref counting. Contract.ThrowIfFalse(_treeNodeCaches.TryAdd(snapshot, (Cache)cache)); }