private void FeedFromEventStore() { Console.WriteLine("Performing integrity read of domain events ..."); var domainEvents = _customerQueueEventStoreSubscription.IntegrityLoadEvents(OnEachNewDomainEventDispatchItToEventBus); foreach (var e in domainEvents) { _viewHolder.Apply(e); } Console.WriteLine("Integrity read finished"); Console.WriteLine(_viewHolder); }
public override Result Handle(CustomerQueueEvent e) { _viewHolder.Apply(e); _viewHolder.ForEachView(_clientNotifier.NotifyAll); return(Ok()); }