Table of Contents

Class AggregateRootMutatorFactory

Namespace
Cratis.Chronicle.Aggregates
Assembly
Cratis.Chronicle.dll

Represents an implementation of IAggregateRootMutatorFactory.

public class AggregateRootMutatorFactory : IAggregateRootMutatorFactory
Inheritance
AggregateRootMutatorFactory
Implements
Inherited Members

Constructors

AggregateRootMutatorFactory(IEventStore, IAggregateRootStateProviders, IAggregateRootEventHandlersFactory, IEventSerializer, ICorrelationIdAccessor)

Represents an implementation of IAggregateRootMutatorFactory.

public AggregateRootMutatorFactory(IEventStore eventStore, IAggregateRootStateProviders aggregateRootStateProviders, IAggregateRootEventHandlersFactory aggregateRootEventHandlersFactory, IEventSerializer eventSerializer, ICorrelationIdAccessor correlationIdAccessor)

Parameters

eventStore IEventStore

IEventStore to get event sequence to work with.

aggregateRootStateProviders IAggregateRootStateProviders

IAggregateRootStateProviders for creating state providers.

aggregateRootEventHandlersFactory IAggregateRootEventHandlersFactory

IAggregateRootEventHandlersFactory for creating event handlers.

eventSerializer IEventSerializer

IEventSerializer for serializing and deserializing events.

correlationIdAccessor ICorrelationIdAccessor

The ICorrelationIdAccessor for correlation id.

Methods

Create<TAggregateRoot>(IAggregateRootContext)

Create an instance of IAggregateRootMutator for the specified TState.

public Task<IAggregateRootMutator> Create<TAggregateRoot>(IAggregateRootContext context)

Parameters

context IAggregateRootContext

The IAggregateRootContext to create the mutator for.

Returns

Task<IAggregateRootMutator>

IAggregateRootMutator created.

Type Parameters

TAggregateRoot