invoke

open operator override fun invoke(exchange: ServerCommandExchange<*>): Mono<DomainEventStream>

Invokes the command function and returns a domain event stream.

This method orchestrates the command execution, including after-command functions, and converts the results into a domain event stream.

Return

A Mono containing the domain event stream.

Parameters

exchange

The server command exchange containing the command.