Class CommandResult
- Namespace
- Cratis.Applications.Commands
- Assembly
- Cratis.Applications.dll
Represents the result coming from executing a command.
public class CommandResult
- Inheritance
-
CommandResult
- Derived
- Inherited Members
Properties
CorrelationId
Gets the CorrelationId associated with the command.
public CorrelationId CorrelationId { get; init; }
Property Value
ExceptionMessages
Gets any exception messages that might have occurred.
public IEnumerable<string> ExceptionMessages { get; init; }
Property Value
ExceptionStackTrace
Gets the stack trace if there was an exception.
public string ExceptionStackTrace { get; init; }
Property Value
HasExceptions
Gets whether or not there are any exceptions that occurred.
public bool HasExceptions { get; }
Property Value
IsAuthorized
Gets whether or not the command was authorized to execute.
public bool IsAuthorized { get; init; }
Property Value
IsSuccess
Gets whether or not the command executed successfully.
public bool IsSuccess { get; }
Property Value
IsValid
Gets whether or not the command is valid.
public bool IsValid { get; }
Property Value
ValidationResults
Gets any validation result.
public IEnumerable<ValidationResult> ValidationResults { get; init; }