Table of Contents

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 IAggregateRootContext

The IAggregateRootContext to work with.

eventStore IEventStore

The IEventStore to work with.

eventSerializer IEventSerializer

IEventSerializer for serializing events.

eventHandlers IAggregateRootEventHandlers

The IAggregateRootEventHandlers for the aggregate root.

correlationIdAccessor ICorrelationIdAccessor

The 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 object

Event to mutate with.

Returns

Task

Awaitable task.

Rehydrate()

Rehydrate the mutation.

public Task Rehydrate()

Returns

Task

Awaitable task.