Skip to content

Commit

Permalink
Fixed issue with domain bus not publishing the snapshot state of the …
Browse files Browse the repository at this point in the history
…aggregate.
  • Loading branch information
Greg Munn committed Aug 31, 2012
1 parent 18ef1a5 commit 01226af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonoKit/Domain/Data/SnapshotAggregateRepository_T.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void Save(T instance)
this.repository.Save(snapshot);

// publish the snapshot save prior to publishing the events raised from it
this.changes.OnNext(new DataModelChange(instance));
this.changes.OnNext(new DataModelChange(snapshot));

this.PublishEvents(instance.UncommittedEvents);
instance.Commit();
Expand Down

0 comments on commit 01226af

Please sign in to comment.