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