Odonno / SimpleEventSourcing

Event Sourcing made simple using Reactive Extensions
MIT License
2 stars 2 forks source link

Can we simplify the link between store events and views? #2

Closed Odonno closed 6 years ago

Odonno commented 6 years ago

We need to do this:

var events = eventStore.ObserveEvent();
events.Subscribe(totalCostCartEventView.Handle);
events.Subscribe(ordersCartEventView.Handle);

Can we simplify the code?