when

abstract fun when(event: Any, state: Any?): ExpectStage<T>
  1. 当订阅到领域事件时,生成聚合命令.


open fun when(event: Any): ExpectStage<T>