Class UnitOfWorkCannotSpanEventSequences

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

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

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

Constructors

UnitOfWorkCannotSpanEventSequences(EventSequenceId, EventSequenceId)

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

public UnitOfWorkCannotSpanEventSequences(EventSequenceId enrolledEventSequenceId, EventSequenceId attemptedEventSequenceId)

Parameters

enrolledEventSequenceId EventSequenceId

The event sequence the unit of work is already bound to.

attemptedEventSequenceId EventSequenceId

The different event sequence that was attempted.