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