Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot , First using TryRestoreAggregateFromSnapshot<TAggregateRoot>, otherwise via IAggregateRepository<TAuthenticationToken>.Get<TAggregateRoot> on Repository Then does rehydration.
- Template Parameters
-
| TAggregateRoot | The Type of the IAggregateRoot<TAuthenticationToken>. |
- Parameters
-
| aggregateId | The identifier of the IAggregateRoot<TAuthenticationToken> to retrieve. |
| events | A collection of IEvent<TAuthenticationToken> to replay on the retrieved IAggregateRoot<TAuthenticationToken>. If null, the IEventStore<TAuthenticationToken> will be used to retrieve a list of IEvent<TAuthenticationToken> for you. |
Implements Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.
- Type Constraints
-
| TAggregateRoot | : | IAggregateRoot<TAuthenticationToken> | |