protected void ApplyChange(Event @event)
 {
     ApplyChange(@event, true);
 }
 // push atomic aggregate changes to local history for further processing (EventStore.SaveEvents)
 private void ApplyChange(Event @event, bool isNew)
 {
     this.AsDynamic().Apply(@event);
     Version = @event.Version;
     if (isNew) _changes.Add(@event);
 }
Example #3
0
 public EventDescriptor(Guid id, Event eventData, int version)
 {
     EventData = eventData;
     Version = version;
     Id = id;
 }