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