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.

◆ EventsOutOfOrderException()

Cqrs.Domain.Exceptions.EventsOutOfOrderException.EventsOutOfOrderException ( Guid  id,
Type  aggregateType,
int  currentVersion,
int  providedEventVersion 
)

Instantiate a new instance of EventsOutOfOrderException with the provided identifier of the IAggregateRoot<TAuthenticationToken> that had out of order IEvent<TAuthenticationToken>. and the currentVersion the IAggregateRoot<TAuthenticationToken> was at and the providedEventVersion the event version that was provided.

Parameters
idThe identifier of the IAggregateRoot<TAuthenticationToken> that had events.
aggregateTypeThe Type of the IAggregateRoot<TAuthenticationToken> that the IEvent<TAuthenticationToken> was trying to be saved on.
currentVersionThe version number the IAggregateRoot<TAuthenticationToken> was at when it received an out of order IEvent<TAuthenticationToken>.
providedEventVersionThe version number the IEvent<TAuthenticationToken> that was provided, that was out of order.