public CommandHandler(IEventStore eventStore, InMemoryDomainEvents domainEvents) { DomainEvents = domainEvents; EntityEventWriter = new EntityEventWriter(eventStore); CommandSubscriptionId = SubscriptionId.New(); EntityConsolidator = new EntityConsolidator <TEntity>(eventStore, domainEvents); }
public TakeSnapshotCommandHandler(IEventStore eventStore) { EntityEventWriter = new EntityEventWriter(eventStore); EventStore = eventStore; }