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.
Cqrs.Domain.DtoAggregateRoot< TAuthenticationToken, TDto > Class Template Reference

An IAggregateRoot<TAuthenticationToken> for operating on IDto instances. More...

+ Inheritance diagram for Cqrs.Domain.DtoAggregateRoot< TAuthenticationToken, TDto >:

Public Member Functions

 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> More...
 
- Public Member Functions inherited from Cqrs.Domain.AggregateRoot< TAuthenticationToken >
IEnumerable< IEvent< TAuthenticationToken > > GetUncommittedChanges ()
 Get all applied changes that haven't yet been committed. More...
 
virtual void MarkChangesAsCommitted ()
 Mark all applied changes as committed, increment Version and flush the internal collection of changes. More...
 
virtual void LoadFromHistory (IEnumerable< IEvent< TAuthenticationToken >> history)
 Apply all the events in history using event replay to this instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Cqrs.Domain.AggregateRoot< TAuthenticationToken >
 AggregateRoot ()
 Instantiates a new instance of AggregateRoot<TAuthenticationToken>. More...
 
virtual void Initialise ()
 Initialise any properties More...
 
virtual void ApplyChange (IEvent< TAuthenticationToken > @event)
 Call the "Apply" method with a signature matching the provided event without using event replay to this instance. More...
 
virtual void ApplyChanges (IEnumerable< IEvent< TAuthenticationToken >> events)
 Call the "Apply" method with a signature matching each IEvent<TAuthenticationToken> in the provided events without using event replay to this instance. More...
 
- Properties inherited from Cqrs.Domain.AggregateRoot< TAuthenticationToken >
Guid Id [get, protected set]
 The identifier of this IAggregateRoot<TAuthenticationToken>. More...
 
int Version [get, protected set]
 The current version of this IAggregateRoot<TAuthenticationToken>. More...
 
- Properties inherited from Cqrs.Domain.IAggregateRoot< TAuthenticationToken >
Guid Id [get]
 The identifier of this IAggregateRoot<TAuthenticationToken>. More...
 
int Version [get]
 The current version of this IAggregateRoot<TAuthenticationToken>. More...
 

Detailed Description

An IAggregateRoot<TAuthenticationToken> for operating on IDto instances.

Template Parameters
TAuthenticationTokenThe Type of authentication token.
TDtoThe Type of IDto.
Type Constraints
TDto :IDto