UnitOfWork & StrcutureMap & Desktop Application
- by Afshin Gh
When developing Web App and using StrcutureMap i normally use HybridHttpOrThreadLocalScoped for my UnitOfWork Part. (unit of work starts up per web request and ...)
What about a desktop app(windows service, console, ...)?
There is no session and request in a desktop app.
How should i manage UoW in this situation? any good reference or article?
I don't want to make it singleton.
What should I do?