Example #1
0
        public void setup()
        {
            var builder = new CheckpointStrategy.Builder();

            builder.FromAll();
            builder.AllEvents();
            _strategy = builder.Build(ProjectionMode.Persistent);
        }
Example #2
0
 public void it_can_be_created()
 {
     CheckpointStrategy.Create(
         new QuerySourcesDefinition {
         AllStreams = true, AllEvents = true
     }, ProjectionConfig.GetTest(),
         new RealTimeProvider());
 }
Example #3
0
 public Subscribe(
     Guid correlationId, ICoreProjection subscriber, CheckpointTag from,
     CheckpointStrategy checkpointStrategy, long checkpointUnhandledBytesThreshold)
 {
     _correlationId      = correlationId;
     _subscriber         = subscriber;
     _fromPosition       = @from;
     _checkpointStrategy = checkpointStrategy;
     _checkpointUnhandledBytesThreshold = checkpointUnhandledBytesThreshold;
 }