Interface IAggregateRootMutator
- Namespace
- Cratis.Chronicle.Aggregates
- Assembly
- Cratis.Chronicle.dll
Defines a system that can mutate an IAggregateRoot.
public interface IAggregateRootMutator
Methods
Dehydrate()
Dehydrate the mutation.
Task Dehydrate()
Returns
- Task
Awaitable task.
Mutate(object)
Mutate the aggregate root with an event.
Task Mutate(object @event)
Parameters
event
objectEvent to mutate with.
Returns
- Task
Awaitable task.
Rehydrate()
Rehydrate the mutation.
Task Rehydrate()
Returns
- Task
Awaitable task.