Table of Contents

Class AggregateRootEventHandlersFactory

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

Represents a system that is capable of creating instances of IAggregateRootEventHandlersFactory.

public class AggregateRootEventHandlersFactory : IAggregateRootEventHandlersFactory
Inheritance
AggregateRootEventHandlersFactory
Implements
Inherited Members

Remarks

Initializes a new instance of AggregateRootEventHandlersFactory.

Constructors

AggregateRootEventHandlersFactory(IEventTypes)

Represents a system that is capable of creating instances of IAggregateRootEventHandlersFactory.

public AggregateRootEventHandlersFactory(IEventTypes eventTypes)

Parameters

eventTypes IEventTypes

IEventTypes for mapping types.

Remarks

Initializes a new instance of AggregateRootEventHandlersFactory.

Methods

GetFor(IAggregateRoot)

Create an instance of IAggregateRootEventHandlers for a specific aggregate root type.

public IAggregateRootEventHandlers GetFor(IAggregateRoot aggregateRoot)

Parameters

aggregateRoot IAggregateRoot

The IAggregateRoot to create for.

Returns

IAggregateRootEventHandlers

A new IAggregateRootEventHandlers instance.