Interface IAggregateRoot
- Namespace
- Cratis.Chronicle.Aggregates
- Assembly
- Cratis.Chronicle.dll
Defines an aggregate root.
public interface IAggregateRoot
- Extension Methods
Methods
Apply(object)
Apply a single event to the aggregate root.
Task Apply(object @event)
Parameters
event
objectEvent to apply.
Returns
- Task
Awaitable task.
Commit()
Commits the aggregate root.
Task<AggregateRootCommitResult> Commit()
Returns
- Task<AggregateRootCommitResult>
Awaitable task.