I'm adding NEventStore to my existing project and I'm using DI.
I'd like to have an instance of CommonDomain.Persistence.EventStore.IRepository
injected into my MVC controller. The only implementation of this interface is EventStoreRepository
.
This class depends on IConstructAggregates
and the only implementation I find is AggregateFactory
which is marked as internal, located in test project and has very strange file name.
Am I not supposed to use IRepository
? (why is it marked as public and not consumed by any of the internal code?)
I'm looking on sample project here and IRepository
used for manipulating of the aggregates.
Or should I implement IConstructAggregates
myself?