Companion
object Companion
Functions
Link copied to clipboard
Link copied to clipboard
fun <C : Any> of(command: C, id: String? = null, type: AggregateType? = null, targetTenant: String? = null, targetScope: Scope? = null, wait: WaitPlan? = null, timeout: Duration? = null, requestId: String? = null, expectedVersion: Int? = null): CommandRequest<C>
A request of command with the given fields; each left out is as CommandRequest describes.
Link copied to clipboard
A request of command to the aggregate ref names: its type and, when assigned, its id; its tenant the targetTenant, which is the caller's own unless it names another. A target tenant that is the caller's own is dropped, so to(event.ref, command) from a handler acting in the event's tenant is an ordinary request, not a cross-scope one.