Calls IAggregateFactory.Create to get a, TAggregateRoot and then calls LoadAggregateHistory<TAggregateRoot>.
- Template Parameters
-
TAggregateRoot | The Type of IAggregateRoot<TAuthenticationToken>. |
- Parameters
-
id | The id of the TAggregateRoot to create. |
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. |
- Type Constraints
-
TAggregateRoot | : | IAggregateRoot<TAuthenticationToken> | |