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
IEventStoreIEventStore to get event sequence to work with.
aggregateRootStateProviders
IAggregateRootStateProvidersIAggregateRootStateProviders for creating state providers.
aggregateRootEventHandlersFactory
IAggregateRootEventHandlersFactoryIAggregateRootEventHandlersFactory for creating event handlers.
eventSerializer
IEventSerializerIEventSerializer for serializing and deserializing events.
correlationIdAccessor
ICorrelationIdAccessorThe 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
IAggregateRootContextThe IAggregateRootContext to create the mutator for.
Returns
- Task<IAggregateRootMutator>
IAggregateRootMutator created.
Type Parameters
TAggregateRoot