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
eventSourceIdEventSourceIdThe event source being enrolled.
effectiveConcurrencyScopeThe effective scope.
requiredConcurrencyScopeThe 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
eventSourceIdEventSourceIdThe event source being enrolled.
effectiveConcurrencyScopeThe effective scope.
requiredConcurrencyScopeThe required scope that conflicts with the enrollment.
eventSequenceIdEventSequenceIdThe attempted event sequence, if known.
Properties
Effective
Gets the supplied or effective scope that conflicts with the requirement.
public ConcurrencyScope Effective { get; }
Property Value
EventSequenceId
Gets the attempted event sequence, or null if it was not supplied.
public EventSequenceId? EventSequenceId { get; }
Property Value
EventSourceId
Gets the event source being enrolled.
public EventSourceId EventSourceId { get; }
Property Value
Required
Gets the required scope that the enrollment cannot carry.
public ConcurrencyScope Required { get; }