Ejemplo n.º 1
0
 internal static void Update(this IEventStore eventStore, IAggregate aggregate)
 {
     eventStore.Append(aggregate.Id, aggregate.DequeuePendingEvents());
 }
Ejemplo n.º 2
0
 internal static void Add(this IEventStore eventStore, IAggregate aggregate)
 {
     eventStore.StartStream(aggregate.Id, aggregate.DequeuePendingEvents());
 }