public void Run(int maxEventsThreshold = 500)
        {
            log.Info("Rebuild snapshots. MaxEventsThreshold: " + maxEventsThreshold);
            IPersistStreams advanced = events.Advanced;
            var             ids      = advanced.GetStreamsToSnapshot(maxEventsThreshold).Select(e => new Guid(e.StreamId)).ToArray();

            ids.AsParallel().ForAll(MakeSnapshot);
        }
Пример #2
0
 public IEnumerable <IStreamHead> GetStreamsToSnapshot(string bucketId, int maxThreshold)
 {
     return(_original.GetStreamsToSnapshot(bucketId, maxThreshold));
 }
 public virtual IEnumerable <StreamHead> GetStreamsToSnapshot(string bucketId, int maxThreshold)
 {
     return(_persistence.GetStreamsToSnapshot(bucketId, maxThreshold));
 }
Пример #4
0
 public IEnumerable <StreamHead> GetStreamsToSnapshot(int maxThreshold)
 {
     return(original.GetStreamsToSnapshot(maxThreshold));
 }
 public virtual IEnumerable <StreamHead> GetStreamsToSnapshot(int maxThreshold)
 {
     return(_persistence.GetStreamsToSnapshot(maxThreshold));
 }
 public void should_purge_all_streams_to_snapshot()
 {
     persistence1.GetStreamsToSnapshot(0).Count().ShouldBe(0);
 }