CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ DuplicateEventException()

Cqrs.Domain.Exceptions.DuplicateEventException< TAggregateRoot, TAuthenticationToken >.DuplicateEventException ( Guid  id,
int  version 
)

Instantiate a new instance of DuplicateEventException<TAggregateRoot,TAuthenticationToken> with the provided identifier of the IAggregateRoot<TAuthenticationToken> that had duplicate events. and the version that had more than one IEvent<TAuthenticationToken> provided.

Parameters
idThe identifier of the IAggregateRoot<TAuthenticationToken> that had events.
versionThe version number of the duplicate events