Build() public method

public Build ( ) : IQuerySources
return IQuerySources
 private IReaderStrategy CreateReaderStrategy()
 {
     var result = new SourceDefinitionBuilder();
     result.FromAll();
     result.AllEvents();
     return ReaderStrategy.Create(0, result.Build(), new RealTimeProvider(), stopOnEof: false, runAs: null);
 }
Beispiel #2
0
        public static IQuerySources From(Action <SourceDefinitionBuilder> configure)
        {
            var b = new SourceDefinitionBuilder();

            configure(b);
            return(b.Build());
        }
 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;
 }
 public static IQuerySources From(Action<SourceDefinitionBuilder> configure)
 {
     var b = new SourceDefinitionBuilder();
     configure(b);
     return b.Build();
 }