TracedAggregateRoot<TKey> Class
Definition
- Namespace
- Savvyio.Domain.EventSourcing
- Assemblies
- Savvyio.Domain.EventSourcing.dll
Provides a way to cover the pattern of an Aggregate as specified in Domain Driven Design that is optimized for Event Sourcing. This is an abstract class.
public abstract class TracedAggregateRoot<TKey> : Aggregate<TKey, ITracedDomainEvent>, ITracedAggregateRoot<TKey>, IAggregateRoot<ITracedDomainEvent>, IAggregateRoot, IMetadata, IEntity<TKey>, IIdentity<TKey>
Type Parameters
TKeyThe type of the key that uniquely identifies this aggregate.
- Inheritance
-
Entity<TKey>Aggregate<TKey, ITracedDomainEvent>TracedAggregateRoot<TKey>
- Implements
-
ITracedAggregateRoot<TKey>IEntity<TKey>IIdentity<TKey>
- Inherited Members
- Extension Methods
Constructors
| Name | Description |
|---|---|
| TracedAggregateRoot(IMetadata) | Initializes a new instance of the TracedAggregateRoot<TKey> class. |
| TracedAggregateRoot(TKey, IEnumerable<ITracedDomainEvent>) | Initializes a new instance of the TracedAggregateRoot<TKey> class. |
Properties
| Name | Description |
|---|---|
| Version | Gets the version of the Aggregate. |
Methods
| Name | Description |
|---|---|
| AddEvent(ITracedDomainEvent) | Adds an event to the Aggregate. |
| RegisterDelegates(IFireForgetRegistry<ITracedDomainEvent>) | Registers the delegates responsible for handling types that implements the ITracedDomainEvent interface. |
See Also
Aggregate<TKey, TEvent>
ITracedAggregateRoot<TKey>