Beispiel #1
0
            protected virtual PartitionStateCache GivenStateCache()
            {
                var stateCache = new PartitionStateCache();

                stateCache.CachePartitionState(
                    "a", new PartitionState("{}", null, CheckpointTag.FromPhase(0, completed: false)));
                stateCache.CachePartitionState(
                    "b", new PartitionState("{}", null, CheckpointTag.FromPhase(0, completed: false)));
                stateCache.CachePartitionState(
                    "c", new PartitionState("{}", null, CheckpointTag.FromPhase(0, completed: false)));
                return(stateCache);
            }
 public void when()
 {
     _cache = new PartitionStateCache(CheckpointTag.FromPosition(0, -1));
     _cachedAtCheckpointTag = CheckpointTag.FromPosition(1000, 900);
     _cache.CachePartitionState(
         "partition", new PartitionState("data", null, _cachedAtCheckpointTag));
 }