NEventStore / NEventStore.Domain

A recipe for implementing event sourced domain objects with NEventStore
MIT License
45 stars 21 forks source link

AggregateFactory Build method does not use snapshot #10

Open alkampfergit opened 8 years ago

alkampfergit commented 8 years ago

Base implementation of AggregateFactory, should check for a constructor with memento to create an aggregate when a snapshot is present.

danielHalan commented 8 years ago

Current solution is to inject your own Aggregate Builder implementing IConstructAggregates in EventStoreRepository constructor, where you can apply your Memento to the Aggregate.