Esempio n. 1
0
 public EventStoreIndexController(CronusContext context, TypeContainer <IEventStoreIndex> endicesTypes, IPublisher <ICommand> publisher, ProjectionExplorer projection)
 {
     this.context      = context;
     this.endicesTypes = endicesTypes;
     this.publisher    = publisher;
     this.projection   = projection;
 }
Esempio n. 2
0
        public ProjectionController(ProjectionExplorer projectionExplorer)
        {
            if (projectionExplorer is null)
            {
                throw new ArgumentNullException(nameof(projectionExplorer));
            }

            _projectionExplorer = projectionExplorer;
        }
Esempio n. 3
0
        public ProjectionMetaController(ProjectionExplorer projectionExplorer, CronusContext context, ProjectionHasher projectionHasher)
        {
            if (projectionExplorer is null)
            {
                throw new ArgumentNullException(nameof(projectionExplorer));
            }

            _projectionExplorer   = projectionExplorer;
            this.context          = context;
            this.projectionHasher = projectionHasher;
        }
Esempio n. 4
0
        public IndexListController(ProjectionExplorer projectionExplorer, CronusContext context, ProjectionHasher projectionHasher, TypeContainer <IEventStoreIndex> indicesMeta)
        {
            if (projectionExplorer is null)
            {
                throw new ArgumentNullException(nameof(projectionExplorer));
            }
            if (context is null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _projectionExplorer   = projectionExplorer;
            this.context          = context;
            this.projectionHasher = projectionHasher;
            this.indicesMeta      = indicesMeta;
        }