ICommandBus.register<TCommand extends CqrsCommand, TResult>(type: string,handler: ICommandHandler<TCommand, TResult>): void
Registers a handler for a command type.
TCommand extends CqrsCommand
The command type
handler: ICommandHandler<TCommand, TResult>
The command handler