Esempio n. 1
0
        public EventTypeIndexForProjections(IEnumerable <Type> allEventTypesInTheSystem, IPublisher <ICommand> publisher, IProjectionStore store, ICornusInternalStore internalStore)
        {
            var hasher = new ProjectionHasher();

            //currentHash = hasher.CalculateHash(allEventTypesInTheSystem.Select(x => x.GetContractId()).ToList());
            currentHash = hasher.CalculateHash(typeof(EventTypeIndexForProjections));

            var gg = new ProjectionVersion(ContractId, ProjectionStatus.Live, 1, currentHash);

            store.InitializeProjectionStore(gg);

            this.allEventTypesInTheSystem = new HashSet <Type>(allEventTypesInTheSystem);
            this.store         = store;
            this.internalStore = internalStore;
        }
Esempio n. 2
0
 public IndexBuilder(ProjectionVersion indexVersion, IProjectionStore store, ICornusInternalStore internalStore)
 {
     this.indexVersion  = indexVersion;
     this.store         = store;
     this.internalStore = internalStore;
 }