by jmkjaer · 3y ago · 0 comments
> A unit of work is a use case in the system that startes with a public method and ends up with one of three types of results (...)
I use the same naming as well, and I really like it.
using var uow = UnitOfWorkContainer.Begin();
await SomeDep.Save(foo); // internally uses the uow's transaction
await SomeOtherDep.Save(foo2);
uow.Complete();