charlessolar / Aggregates.NET

.NET event sourced domain driven design model via NServiceBus and GetEventStore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit of Work Redesign

charlessolar opened this issue · comments

IUnitOfWork, IDomain, IApplication, IGeneric

Too many interfaces and too specific. Im thinking of implementing some kind of generic typed unit of work and a configuration step

Aggregates.Configure().WithUnitOfWork<MyUnitOfWork>();

and then ctx.Uow() would return MyUnitOfWork - somehow

Important that instances available to handlers don't have Begin and End methods, which was one of the reasons I split up unit of works to begin with.

Fixed in v0.17