Parallel Foreach webservice call
问题 We have implemented application wherein we need to process incoming batch. for example a set of Request of certain object type has to be sent to particular webservice to have it processed We have implemented following snippet to do so. need your help / guidance if there wouldbe any pitfalls on same var options = new ParallelOptions { MaxDegreeOfParallelism = 10 }; Parallel.ForEach(request, options, currentRequest => { ProcessedRequest processedRequest = null; try { currentRequest.DBSave =