Exemple #1
0
        public ChecksumScope(
            ChecksumTreeNodeCacheCollection caches,
            ChecksumTreeNodeCache cache,
            SolutionChecksumObject solutionChecksum)
        {
            _caches = caches;
            _cache  = cache;

            SolutionChecksum = solutionChecksum;

            _caches.RegisterSnapshot(this, cache);
        }
Exemple #2
0
 public AssetBuilder(ChecksumTreeNodeCache checksumTree)
 {
     _checksumTree = checksumTree;
     _serializer   = checksumTree.Serializer;
 }
Exemple #3
0
 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));
 }