private void ApplyChange(Event @event, bool isNew) { this.AsDynamic().Apply(@event); if(isNew) _changes.Add(@event); }
public EventDescriptor(Guid aggregateId, Event @event, int version) { Event = @event; Version = version; AggregateId = aggregateId; }
protected void ApplyChange(Event @event) { ApplyChange(@event, true); }