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.

◆ DtoAggregateRoot()

Cqrs.Domain.DtoAggregateRoot< TAuthenticationToken, TDto >.DtoAggregateRoot ( Guid  id,
TDto  original,
TDto @  new 
)

Instantiate a new instance of DtoAggregateRoot<TAuthenticationToken,TDto> and instantly apply the change as n DtoAggregateEvent<TAuthenticationToken,TDto>

Parameters
idThe identifier of the IDto.
originalThe original copy of the IDto. May be null for a DtoAggregateEventType.Created operation.
newThe new copy of the IDto. May be null for a DtoAggregateEventType.Deleted operation.