DefaultDeleteAggregateFunction
class DefaultDeleteAggregateFunction<C : Any>(commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : InternalCommandFunction<C>
Default implementation of delete aggregate command function.
This function handles the DefaultDeleteAggregate command by generating a DefaultAggregateDeleted event. It provides a standard way to mark aggregates as deleted in the system.
Parameters
commandAggregate
The command aggregate instance this function belongs to.
afterCommandFunctions
List of after-command functions to execute after deletion.
Type Parameters
C
The type of the command aggregate root.
Constructors
Link copied to clipboard
constructor(commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>)