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
Defined in
Properties
correlationId
readonly
correlationId:Guid
=Guid.empty
Gets the correlation identifier associated with the executed command.
Implementation of
Defined in
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
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
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
Defined in
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
Defined in
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
Defined in
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
Defined in
validationResults
Get Signature
get validationResults():
ValidationResult
[]
Gets any validation errors. If this collection is empty, there are errors.
Returns
Gets any validation errors. If this collection is empty, there are errors.
Implementation of
ICommandResult
.validationResults
Defined in
Methods
isAnyFalse()
isAnyFalse(
callback
):boolean
Parameters
callback
GetSpecificState
Returns
boolean
Defined in
isAnyTrue()
isAnyTrue(
callback
):boolean
Parameters
callback
GetSpecificState
Returns
boolean