Class StatelessAggregateRootMutator
- Namespace
- Cratis.Chronicle.Aggregates
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IAggregateRootMutator for stateless IAggregateRoot.
public class StatelessAggregateRootMutator : IAggregateRootMutator
- Inheritance
-
StatelessAggregateRootMutator
- Implements
- Inherited Members
Constructors
StatelessAggregateRootMutator(IAggregateRootContext, IEventStore, IEventSerializer, IAggregateRootEventHandlers, ICorrelationIdAccessor)
Represents an implementation of IAggregateRootMutator for stateless IAggregateRoot.
public StatelessAggregateRootMutator(IAggregateRootContext aggregateRootContext, IEventStore eventStore, IEventSerializer eventSerializer, IAggregateRootEventHandlers eventHandlers, ICorrelationIdAccessor correlationIdAccessor)
Parameters
aggregateRootContext
IAggregateRootContextThe IAggregateRootContext to work with.
eventStore
IEventStoreThe IEventStore to work with.
eventSerializer
IEventSerializerIEventSerializer for serializing events.
eventHandlers
IAggregateRootEventHandlersThe IAggregateRootEventHandlers for the aggregate root.
correlationIdAccessor
ICorrelationIdAccessorThe ICorrelationIdAccessor for correlation id.
Methods
Dehydrate()
Dehydrate the mutation.
public Task Dehydrate()
Returns
- Task
Awaitable task.
Mutate(object)
Mutate the aggregate root with an event.
public Task Mutate(object @event)
Parameters
event
objectEvent to mutate with.
Returns
- Task
Awaitable task.
Rehydrate()
Rehydrate the mutation.
public Task Rehydrate()
Returns
- Task
Awaitable task.