Skip to content

Commit

Permalink
Add ctor in AggregateCommit to pass Timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
tokmac committed Sep 14, 2017
1 parent eaae135 commit 3e4ef40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 3.0.6 - 14.09.2017
* Add ctor in AggregateCommit to pass Timestamp

#### 3.0.5 - 14.09.2017
* Move ProjectionCommit in Cronus

Expand Down
9 changes: 9 additions & 0 deletions src/Elders.Cronus/EventStore/AggregateCommit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ public AggregateCommit(byte[] aggregateRootId, string boundedContext, int revisi
Timestamp = DateTime.UtcNow.ToFileTimeUtc();
}

public AggregateCommit(byte[] aggregateRootId, string boundedContext, int revision, List<IEvent> events, long timestamp)
{
AggregateRootId = aggregateRootId;
BoundedContext = boundedContext;
Revision = revision;
Events = events;
Timestamp = timestamp;
}

[DataMember(Order = 1)]
public byte[] AggregateRootId { get; private set; }

Expand Down

0 comments on commit 3e4ef40

Please sign in to comment.