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