Table of Contents

Documentation / commands/CommandResults

commands/CommandResults

Classes

CommandResults

Defines the result from executing commands.

Implements

Constructors

new CommandResults()

new CommandResults(_commandResultsPerCommand): CommandResults

Parameters
_commandResultsPerCommand

Map<Command<object, object>, CommandResult<object>>

Returns

CommandResults

Defined in

commands/CommandResults.ts:14

Properties

correlationId

readonly correlationId: Guid = Guid.empty

Gets the correlation identifier associated with the executed command.

Implementation of

ICommandResult.correlationId

Defined in

commands/CommandResults.ts:18

Accessors

exceptionMessages
Get Signature

get exceptionMessages(): string[]

Gets any exception messages that might have occurred.

Returns

string[]

Gets any exception messages that might have occurred.

Implementation of

ICommandResult.exceptionMessages

Defined in

commands/CommandResults.ts:52

exceptionStackTrace
Get Signature

get exceptionStackTrace(): string

Gets the stack trace if there was an exception.

Returns

string

Gets the stack trace if there was an exception.

Implementation of

ICommandResult.exceptionStackTrace

Defined in

commands/CommandResults.ts:63

hasExceptions
Get Signature

get hasExceptions(): boolean

Gets whether or not there are any exceptions that occurred.

Returns

boolean

Gets whether or not there are any exceptions that occurred.

Implementation of

ICommandResult.hasExceptions

Defined in

commands/CommandResults.ts:36

isAuthorized
Get Signature

get isAuthorized(): boolean

Gets whether or not the command was authorized to execute.

Returns

boolean

Gets whether or not the command was authorized to execute.

Implementation of

ICommandResult.isAuthorized

Defined in

commands/CommandResults.ts:26

isSuccess
Get Signature

get isSuccess(): boolean

Gets whether or not the command executed successfully.

Returns

boolean

Gets whether or not the command executed successfully.

Implementation of

ICommandResult.isSuccess

Defined in

commands/CommandResults.ts:21

isValid
Get Signature

get isValid(): boolean

Gets whether or not the command is valid.

Returns

boolean

Gets whether or not the command is valid.

Implementation of

ICommandResult.isValid

Defined in

commands/CommandResults.ts:31

validationResults
Get Signature

get validationResults(): ValidationResult[]

Gets any validation errors. If this collection is empty, there are errors.

Returns

ValidationResult[]

Gets any validation errors. If this collection is empty, there are errors.

Implementation of

ICommandResult.validationResults

Defined in

commands/CommandResults.ts:41

Methods

isAnyFalse()

isAnyFalse(callback): boolean

Parameters
callback

GetSpecificState

Returns

boolean

Defined in

commands/CommandResults.ts:75

isAnyTrue()

isAnyTrue(callback): boolean

Parameters
callback

GetSpecificState

Returns

boolean

Defined in

commands/CommandResults.ts:84