Exemple #1
0
        public ExampleProjector(
            IEventMapBuilder <TProjection, string, ProjectionContext> mapBuilder,
            InMemoryDatabase store,
            ProjectionStats stats,
            params IExampleProjector[] childProjectors)
        {
            this.store = store;
            this.stats = stats;
            var map = BuildMapFrom(mapBuilder);

            InnerProjector = new Projector(map, childProjectors.Select(p => p.InnerProjector));
        }
Exemple #2
0
        public CountsProjector(
            Dispatcher dispatcher,
            InMemoryDatabase store,
            ProjectionStats stats)
        {
            this.dispatcher = dispatcher;
            this.store      = store;
            this.stats      = stats;

            BuildCountryProjector();
            BuildDocumentProjector();
        }
 public InMemoryRepository(InMemoryDatabase parent)
 {
     this.parent = parent;
 }