addAggregateId

fun addAggregateId(commandType: Class<*>, read: (Any) -> String?)

Reads the aggregate id of a command of commandType from its body; see the reified overload.