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
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
CorrelationId
Gets the CorrelationId for the operation.
CorrelationId CorrelationId { get; }
Property Value
Errors
Gets any exception messages that might have occurred.
IEnumerable<AppendError> Errors { get; }
Property Value
HasConcurrencyViolations
Gets whether or not there are any concurrency violations that occurred.
bool HasConcurrencyViolations { get; }
Property Value
HasConstraintViolations
Gets whether or not there are any violations that occurred.
bool HasConstraintViolations { get; }
Property Value
HasErrors
Gets whether or not there are any errors that occurred.
bool HasErrors { get; }
Property Value
IsSuccess
Gets a value indicating whether the operation was successful.
bool IsSuccess { get; }