What do you mean about ThreadSafeData ?

Aug 28, 2011 at 8:28 PM

You are using ThreadSafeData class which holds DataContext. Why did you give such a name ? Is it thread safe or unsafe ?

If it is threadsafe how do you achieve it to make it safe ? DataContext is not encapsulated any so i dont see anthing which can make it safe.

 

Coordinator
Sep 9, 2011 at 7:40 PM
Edited Sep 9, 2011 at 8:04 PM

Using that namespace / filename was probably a bad call. it originally housed static classes which I thought were required by DbContext to maintain thread safety, however now it just houses the class that stores the data so I'm not repeating code in 20 different methods. I'll look into it, however the provider seems to maintain thread safety, I tested it against 4 threads with 3000 requests per thread, the total time took around 33 seconds.