Interface IAppendResult

Namespace
Cratis.Chronicle.EventSequences
Assembly
Cratis.Chronicle.dll

Defines the common properties for append result types.

public interface IAppendResult
Extension Methods

Properties

ConcurrencyCheckPerformed

Gets a value indicating whether the concurrency check was actually performed for the operation.

bool ConcurrencyCheckPerformed { get; }

Property Value

bool

Remarks

A skipped concurrency check looks from the outside exactly like a passing one - the append succeeds either way - so this is the only way for a caller to tell whether the serialization it believes it has was enforced. False means nothing was compared against the event store: the operation either asked for no check (None), carried no scope at all, or declared a scope with no expectation the kernel could validate (IsIncomplete). The first append into a scope reports false unless the first-append check is opted into - see CheckFirstAppendIntoAScope.

ConstraintViolations

Gets any violations that occurred during the operation.

IEnumerable<ConstraintViolation> ConstraintViolations { get; }

Property Value

IEnumerable<ConstraintViolation>

CorrelationId

Gets the CorrelationId for the operation.

CorrelationId CorrelationId { get; }

Property Value

CorrelationId

Errors

Gets any exception messages that might have occurred.

IEnumerable<AppendError> Errors { get; }

Property Value

IEnumerable<AppendError>

HasConcurrencyViolations

Gets whether or not there are any concurrency violations that occurred.

bool HasConcurrencyViolations { get; }

Property Value

bool

HasConstraintViolations

Gets whether or not there are any violations that occurred.

bool HasConstraintViolations { get; }

Property Value

bool

HasErrors

Gets whether or not there are any errors that occurred.

bool HasErrors { get; }

Property Value

bool

IsSuccess

Gets a value indicating whether the operation was successful.

bool IsSuccess { get; }

Property Value

bool