Table of Contents

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

CorrelationId

ExceptionMessages

Gets any exception messages that might have occurred.

public IEnumerable<string> ExceptionMessages { get; init; }

Property Value

IEnumerable<string>

ExceptionStackTrace

Gets the stack trace if there was an exception.

public string ExceptionStackTrace { get; init; }

Property Value

string

HasExceptions

Gets whether or not there are any exceptions that occurred.

public bool HasExceptions { get; }

Property Value

bool

IsAuthorized

Gets whether or not the command was authorized to execute.

public bool IsAuthorized { get; init; }

Property Value

bool

IsSuccess

Gets whether or not the command executed successfully.

public bool IsSuccess { get; }

Property Value

bool

IsValid

Gets whether or not the command is valid.

public bool IsValid { get; }

Property Value

bool

ValidationResults

Gets any validation result.

public IEnumerable<ValidationResult> ValidationResults { get; init; }

Property Value

IEnumerable<ValidationResult>