If events is null, loads the events from an IEventStore<TAuthenticationToken>, checks for duplicates and then rehydrates the saga with the events.
- Template Parameters
-
TSaga | The Type of ISaga<TAuthenticationToken>. |
- Parameters
-
saga | The TSaga to rehydrate. |
events | A collection of IEvent<TAuthenticationToken> to replay on the retrieved ISaga<TAuthenticationToken>. If null, the IEventStore<TAuthenticationToken> will be used to retrieve a list of IEvent<TAuthenticationToken> for you. |
throwExceptionOnNoEvents | If true will throw an instance of SagaNotFoundException<TSaga,TAuthenticationToken> if no aggregate events or provided or found in the IEventStore<TAuthenticationToken>. |
- Type Constraints
-
TSaga | : | ISaga<TAuthenticationToken> | |