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