wire

fun wire(model: AggregateModel<*>, command: Command<*>): CommandWire

command, a command of model, in its wire form.


fun wire(type: String, command: Command<*>, replyTo: ReplyTo? = null, actingTenant: String? = null): CommandWire

command, of the command type named type, in its wire form, with the replyTo of a rejection, sent for the actingTenant (CommandWire.actingTenant). Its body is written with exactly what its class reads (CommandBodyJson): a write-only property in, a computed one out, a null as null (#7534, #7574).