public EventDescriptor(Guid id, Event eventData, int version)
 {
     AggregateId = id.ToString();
     EventData = eventData;
     Version = version;
 }
Example #2
0
 private void ApplyChange(Event @event, bool isNew)
 {
   this.AsDynamic().Apply(@event);
   if(isNew) _changes.Add(@event);
 }
Example #3
0
 public EventDescriptor(Guid id, Event eventData, int version)
 {
     EventData = eventData;
     Version = version;
     Id = id;
 }
Example #4
0
 protected void ApplyChange(Event @event)
 {
   ApplyChange(@event, true);
 }