toCommandMessage

fun <C : Any> C.toCommandMessage(id: String = GlobalIdGenerator.generateAsString(), requestId: String? = null, aggregateId: String? = null, tenantId: String? = null, aggregateVersion: Int? = null, namedAggregate: NamedAggregate? = null, header: Header = DefaultHeader.empty(), createTime: Long = System.currentTimeMillis(), upstream: DomainEvent<*>? = null): CommandMessage<C>