Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. call to WCF from multiple threads returns properties with null value sometimes
  2. myList.AsParallel().WithDegreeOfParallelism(1).ForAll(x => Worker(x));
  3.        
  4. public void Worker(object cui)
  5.     {
  6.  
  7.         MyData mf = null;
  8.         mf = (new AnalyseService.AnalyseServiceClient()).GetDataFromWCFService((string)cui, true);
  9.     }