send

suspend fun <C : Any> CommandClient.send(command: C, aggregateId: String? = null, block: CommandRequest.Builder<C>.() -> Unit = {}): CommandResult

Sends command to the aggregate aggregateId names (none for a creation), with the fields block sets, its type derived from its class unless the block sets it: CommandClient.send of command's toCommandRequest.


suspend fun <C : Any> CommandClient.send(command: C, to: AggregateRef, block: CommandRequest.Builder<C>.() -> Unit = {}): CommandResult

Sends command to the aggregate the ref to names, with the fields block sets; see send of an id.