Class DuplicateSagaEventException<TSaga, TAuthenticationToken>
The IEventStore<TAuthenticationToken> gave more than one event.
Inheritance
Inherited Members
Namespace: Cqrs.Domain.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class DuplicateSagaEventException<TSaga, TAuthenticationToken> : Exception, ISerializable, _Exception where TSaga : ISaga<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TSaga | The System.Type of the ISaga<TAuthenticationToken> that wasn't found. |
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
DuplicateSagaEventException(Guid, Int32)
Instantiate a new instance of DuplicateSagaEventException<TSaga, TAuthenticationToken> with the provided identifier of the ISaga<TAuthenticationToken> that had duplicate IEvent<TAuthenticationToken>.
and the version
that had more than one IEvent<TAuthenticationToken> provided.
Declaration
public DuplicateSagaEventException(Guid id, int version)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The identifier of the ISaga<TAuthenticationToken> that had IEvent<TAuthenticationToken>. |
System.Int32 | version | The version number of the duplicate IEvent<TAuthenticationToken> |
Properties
Id
The identifier of the ISaga<TAuthenticationToken> that had duplicate IEvent<TAuthenticationToken>..
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
SagaType
The System.Type of the ISaga<TAuthenticationToken> that had duplicate IEvent<TAuthenticationToken>..
Declaration
[DataMember]
public Type SagaType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |