Ejemplo n.º 1
0
        public ChecksumScope(
            ChecksumTreeNodeCacheCollection caches,
            ChecksumTreeNodeCache cache,
            SolutionChecksumObject solutionChecksum)
        {
            _caches = caches;
            _cache  = cache;

            SolutionChecksum = solutionChecksum;

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