Table of Contents

Interface IAggregateRoot<TEvent>

Namespace
Savvyio.Domain
Assembly
Savvyio.Core.dll

Defines an Event based contract of an Aggregate as specified in Domain Driven Design.

public interface IAggregateRoot<out TEvent> : IAggregateRoot, IMetadata

Type Parameters

TEvent

The type of the event that implements the IDomainEvent interface.

Inherited Members
Extension Methods

Properties

Events

Gets the events that was added to the Aggregate.

IReadOnlyList<TEvent> Events { get; }

Property Value

IReadOnlyList<TEvent>

The events added to the Aggregate.

Methods

RemoveAllEvents()

Removes all events from the Aggregate.

void RemoveAllEvents()

See Also