Registers and executes commands.
register<TCommand extends CqrsCommand, TResult>(type: string,handler: ICommandHandler<TCommand, TResult>): void
Registers a handler for a command type.
execute<TResult = unknown>(command: CqrsCommand): Promise<TResult>
Executes a command.