예제 #1
0
 public void Update(EventAudit eventAudit)
 {
     LastModified   = eventAudit.OccurredAt;
     LastModifiedBy = eventAudit.InitiatedBy;
     Version        = eventAudit.EventVersion;
 }
예제 #2
0
 protected EventAudit CreateEventAudit(long streamPosition, Event @event)
 {
     return(EventAudit.Create(@event.OccurredAt, @event.UserId, @event.Version, streamPosition));
 }
예제 #3
0
 public static AggregateAudit Create(EventAudit eventAudit)
 {
     return(new AggregateAudit(eventAudit.OccurredAt, eventAudit.InitiatedBy, eventAudit.OccurredAt, eventAudit.InitiatedBy, eventAudit.EventVersion));
 }
예제 #4
0
 public static ProjectionAudit Create(EventAudit eventAudit)
 {
     return(new ProjectionAudit(DateTimeOffset.UtcNow, eventAudit.StreamPosition));
 }