Unit of Work Redesign
charlessolar opened this issue · comments
Charles Solar commented
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.
Charles Solar commented
Fixed in v0.17