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

scopeLabel EventSourceId

The label that already has an explicit scope.

enrolledScope ConcurrencyScope

The previously enrolled scope.

attemptedScope ConcurrencyScope

The 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

scopeLabel EventSourceId

The label whose scopes conflict.

message string

The message that describes the conflict.

Properties

ScopeLabel

Gets the label, normally the event source id, whose concurrency scopes conflict.

public EventSourceId ScopeLabel { get; }

Property Value

EventSourceId