protected virtual IReaderStrategy CreateCheckpointStrategy()
 {
     var readerBuilder = new SourceDefinitionBuilder();
     if (_source != null)
     {
         _source(readerBuilder);
     }
     else
     {
         readerBuilder.FromAll();
         readerBuilder.AllEvents();
     }
     var config = ProjectionConfig.GetTest();
     IQuerySources sources = readerBuilder.Build();
     ITimeProvider timeProvider = new RealTimeProvider();
     var readerStrategy = Core.Services.Processing.ReaderStrategy.Create(
         0, sources, timeProvider, stopOnEof: false, runAs: config.RunAs);
     return readerStrategy;
 }
Пример #2
0
 public void setup()
 {
     _timeProvider = new RealTimeProvider();
     _ab12Tag = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
     _abStreams = new[] {"a", "b"};
 }