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; }
public IndexBuilder(ProjectionVersion indexVersion, IProjectionStore store, ICornusInternalStore internalStore) { this.indexVersion = indexVersion; this.store = store; this.internalStore = internalStore; }