Namespace Cratis.Chronicle.Transactions

Classes

AppendCondition

Describes a resolved condition validated atomically with an append.

ConcurrencyScopeOriginNotValidForEvents

The exception that is thrown when event enrollment supplies a reserved scope origin.

ConflictingConcurrencyScopesForLabel

The exception that is thrown when a unit of work receives conflicting explicit concurrency scopes for one label.

ConflictingContributionsOnLabel

The exception that is thrown when distinct explicit or aggregate conditions share a label.

ConflictingEnrollmentScope

The exception that is thrown when an enrollment cannot carry its required concurrency scope. The message is redacted by design; values are available through EventSourceId, Effective, Required, and EventSequenceId.

ConflictingExplicitScopes

The exception that is thrown when distinct explicit conditions share a protected-read label.

ContributedRead

A stream or aggregate read's exact dependency, enrolled before exposing its value.

ContributedReadOriginNotValid

The exception that is thrown when a contributed read is neither explicit nor an aggregate.

DecisionReadCommitOwner

An opaque completion capability owned by the transaction orchestrator.

DecisionReadConflictsWithConcurrencyScope

The exception that is thrown when a unit of work both enrolls a decision read for an event source and receives an explicit concurrency scope for the same event source.

DeclaredRoutingNotCoveredByExplicitScope

The exception that is thrown when an exact condition cannot protect declared routing.

DetachedReadWhileReadsAreProtected

The exception that is thrown when a detached decision read occurs without an advisory allowance.

EventEnrollmentOptions

Options for enrolling one event, including the provenance of its scope.

EventForEventSourceIdWithSequenceNumber

Represents an event and the EventSourceId it is for with a sequence number representing what order it occurred in.

ExplicitScopeDoesNotCoverReads

The exception that is thrown when an exact condition is narrower or later than protected reads.

ImmediateAppendRefusal

Refuses immediate appends in this asynchronous flow until the first caller disposes its frame. That frame owns completion only when the unit has no existing owner; subsequent acquisitions borrow its lifetime.

ImmediateAppendRefusalRequiresOwner

The exception that is thrown when a refusal-only or borrowed frame tries to complete a unit, or a caller tries to complete or replace a unit owned by an immediate-append refusal frame.

ImmediateAppendRefused

The exception that is thrown when an immediate append is attempted in a flow that refuses it.

ImmediateAppendWhileReadsAreProtected

The exception that is thrown when an immediate append occurs inside a protected invocation.

NoUnitOfWorkHasBeenStarted

Exception that gets thrown when no unit of work has been started.

ProtectedUnitOfWorkEventsAfterCompletion

Thrown when an event is staged after a protected unit of work has started completing.

ReadAfterProtectedCommit

The exception that is thrown when a protected read occurs after the invocation's unit completed.

ReadAndAggregateOnSameSource

The exception that is thrown when an aggregate and protected read guard the same source.

ReadDependencyTargetMismatch

The exception that is thrown when a dependency belongs to another store, namespace or sequence.

ReadOfSourceWithStagedEvents

The exception that is thrown when a read cannot observe matching events already staged in this command.

ReadProtectionAllowanceNotValid

The exception that is thrown when an allowance is unknown or has no explicit reason.

ReadProtectionFrame

Keeps invocation enforcement alive until its first caller disposes the owning frame. Subsequent callers receive leases that cannot end enforcement.

ReadProtectionMustBeginBeforeEnrollment

The exception that is thrown when enforcement starts after events or dependencies were enrolled.

ReadProtectionRequiresTheDefaultConcurrencyStrategy

The exception that is thrown when a custom strategy is used on a protected-read label.

ReadProtectionUnitMismatch

The exception that is thrown when an invocation tries to use a different unit of work.

ReadRefusedWhileReadsAreProtected

The exception that is thrown when a raw Chronicle read occurs without an explicit allowance.

ReservedConcurrencyScopeLabel

The exception that is thrown when a caller uses a label reserved for read protection.

SourceLessReadNotSupported

The exception that is thrown when a contributed read does not narrow by source.

UnitOfWork

Represents an implementation of IUnitOfWork.

UnitOfWorkBatchEnrollmentNotSupported

The exception that is thrown when a unit-of-work implementation does not support ordered batch enrollment.

UnitOfWorkCannotSpanEventSequences

The exception that is thrown when events for different event sequences are enrolled in the same unit of work.

UnitOfWorkEffectReceiptAlreadySet

The exception that is thrown when a second effect key is enrolled in the same unit of work.

UnitOfWorkEnrollment

Represents the events about to be enrolled for one event source in one call.

UnitOfWorkEnrollmentContributorsNotSupported

The exception that is thrown when a unit-of-work implementation does not support enrollment contributors.

UnitOfWorkEnrollmentNotificationFailed

The exception that is thrown when committing a unit whose enrollment notification failed.

UnitOfWorkImmediateAppendRefusalNotSupported

The exception that is thrown when a unit of work cannot refuse immediate appends.

UnitOfWorkIsAlreadyCommitted

Exception that gets thrown when a unit of work is already committed.

UnitOfWorkIsAlreadyRolledBack

Exception that gets thrown when a unit of work is already rolled back.

UnitOfWorkIsCompleted

The exception that is thrown when events are staged after a strict unit of work begins completing.

UnitOfWorkIsCompleting

The exception that is thrown when a unit of work refuses rollback while its commit is in progress.

UnitOfWorkManager

Represents an implementation of IUnitOfWorkManager.

UnitOfWorkMutatedDuringEnrollment

The exception that is thrown when a contributor mutates its unit of work during consultation or notification.

UnitOfWorkNamedTagsNotSupported

The exception that is thrown when a unit of work implementation cannot carry structured named tags.

UnitOfWorkReadProtectionNotSupported

The exception that is thrown when a unit of work cannot support read protection.

Interfaces

IUnitOfWork

Represents a unit of work.

IUnitOfWorkEnrollmentContributor

Contributes a required scope before events are enrolled in a unit of work.

IUnitOfWorkManager

Defines a system that can manage units of work.

Enums

AppendConditionOrigin

Identifies the dependency that supplied an append condition.

ConcurrencyScopeOrigin

Identifies the contribution that supplied a concurrency scope.

ReadAllowance

Identifies an explicit allowance for Chronicle reads, never immediate appends.

UnitOfWorkLifecyclePolicy

Determines what happens when events are staged after a unit of work begins completing.