TracedAggregateRoot Constructor
Definition
- Namespace
- Savvyio.Domain.EventSourcing
- Assemblies
- Savvyio.Domain.EventSourcing.dll
TracedAggregateRoot(IMetadata)
Initializes a new instance of the TracedAggregateRoot<TKey> class.
protected TracedAggregateRoot(IMetadata metadata = null)
Parameters
metadataIMetadataThe optional metadata to merge with this instance.
TracedAggregateRoot(TKey, IEnumerable<ITracedDomainEvent>)
Initializes a new instance of the TracedAggregateRoot<TKey> class.
protected TracedAggregateRoot(TKey id, IEnumerable<ITracedDomainEvent> events)
Parameters
idTKeyThe identifier of the entity.
eventsIEnumerable<ITracedDomainEvent>The events to rehydrate from.