This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
What is the recommended practice of scoping the unit of work within WCF? I know that I could use the per request unit of work scope if I enable ASP.NET compadability, but what if I am hosting in IIS7 using TCP? |
|
|
I ended up writing this. I have done some basic testing and it seems to work. I thought you might be interested in including it in LightSpeed for other WCF users.
public class WcfUnitOfWorkScope<TUnitOfWork> : UnitOfWorkScopeBase<TUnitOfWork> where TUnitOfWork : class, IUnitOfWork, new() |
|