aggregateVersion
The expected version of the target aggregate for optimistic concurrency control.
When specified, the command will only be applied if the aggregate's current version matches this value. This prevents concurrent modification conflicts and ensures data consistency.
Return
The expected aggregate version, or null if version checking is not required
See also
AggregateVersionConflictException
when version mismatch occurs