Class ConflictingConcurrencyScopesForLabel
- Namespace
- Cratis.Chronicle.Transactions
- Assembly
- Cratis.Chronicle.dll
The exception that is thrown when a unit of work receives conflicting explicit concurrency scopes for one label.
public class ConflictingConcurrencyScopesForLabel : Exception, ISerializable
- Inheritance
-
ConflictingConcurrencyScopesForLabel
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ConflictingConcurrencyScopesForLabel(EventSourceId, ConcurrencyScope, ConcurrencyScope)
Initializes a new instance of the ConflictingConcurrencyScopesForLabel class.
public ConflictingConcurrencyScopesForLabel(EventSourceId scopeLabel, ConcurrencyScope enrolledScope, ConcurrencyScope attemptedScope)
Parameters
scopeLabelEventSourceIdThe label that already has an explicit scope.
enrolledScopeConcurrencyScopeThe previously enrolled scope.
attemptedScopeConcurrencyScopeThe conflicting scope that was attempted.
ConflictingConcurrencyScopesForLabel(EventSourceId, string)
Initializes a new instance of the ConflictingConcurrencyScopesForLabel class with a specific message.
protected ConflictingConcurrencyScopesForLabel(EventSourceId scopeLabel, string message)
Parameters
scopeLabelEventSourceIdThe label whose scopes conflict.
messagestringThe message that describes the conflict.
Properties
ScopeLabel
Gets the label, normally the event source id, whose concurrency scopes conflict.
public EventSourceId ScopeLabel { get; }