private void IntegrityLoadEventsFromEventStore() { WriteLine($"Reconstructing views from event store ...\t\t\t{Now}"); var totalEventsApplied = _eventStore.LoadAll().Select(e => _viewHolder.Apply(e)).Count(); WriteLine($"All views reconstructed. (Total events applied: {totalEventsApplied})\t\t{Now}"); }
public override Result Handle(RemoteEvent e) { _viewHolder.Apply(e); _viewHolder.ForEachView(_clientNotifier.NotifyAll); return(Result.Ok()); }