Class ConflictingEnrollmentScope

Namespace
Cratis.Chronicle.Transactions
Assembly
Cratis.Chronicle.dll

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.

public class ConflictingEnrollmentScope : Exception, ISerializable
Inheritance
ConflictingEnrollmentScope
Implements
Inherited Members
Extension Methods

Constructors

ConflictingEnrollmentScope(EventSourceId, ConcurrencyScope, ConcurrencyScope)

Initializes a conflict without event-sequence information.

public ConflictingEnrollmentScope(EventSourceId eventSourceId, ConcurrencyScope effective, ConcurrencyScope required)

Parameters

eventSourceId EventSourceId

The event source being enrolled.

effective ConcurrencyScope

The effective scope.

required ConcurrencyScope

The required scope that conflicts with the enrollment.

ConflictingEnrollmentScope(EventSourceId, ConcurrencyScope, ConcurrencyScope, EventSequenceId?)

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.

public ConflictingEnrollmentScope(EventSourceId eventSourceId, ConcurrencyScope effective, ConcurrencyScope required, EventSequenceId? eventSequenceId)

Parameters

eventSourceId EventSourceId

The event source being enrolled.

effective ConcurrencyScope

The effective scope.

required ConcurrencyScope

The required scope that conflicts with the enrollment.

eventSequenceId EventSequenceId

The attempted event sequence, if known.

Properties

Effective

Gets the supplied or effective scope that conflicts with the requirement.

public ConcurrencyScope Effective { get; }

Property Value

ConcurrencyScope

EventSequenceId

Gets the attempted event sequence, or null if it was not supplied.

public EventSequenceId? EventSequenceId { get; }

Property Value

EventSequenceId

EventSourceId

Gets the event source being enrolled.

public EventSourceId EventSourceId { get; }

Property Value

EventSourceId

Required

Gets the required scope that the enrollment cannot carry.

public ConcurrencyScope Required { get; }

Property Value

ConcurrencyScope