How can I use Parallel.ForEach(...) with a static method?
i've got a list of objects which i wish to copy from one source to another. [It was suggested that I could speed things up][1] by using [Parallel.ForEach][2] 

How can I refactor the following pseduo code to leverage `Parallel.ForEach(..)` ?

    var foos = GetFoos().ToList();
    foreach(var foo in foos)
    {
        CopyObjectFromOldBucketToNewBucket(foo, oldBucket, newBucket, 
            accessKeyId, secretAccessKey);
    }

Cheers :)

  [1]: http://stackoverflow.com/questions/5702800/how-to-move-a-lot-of-items-from-one-s3-amazon-bucket-to-another
  [2]: http://msdn.microsoft.com/en-us/library/system.threading.tasks.parallel.foreach.aspx
How can I use Parallel.ForEach(...) with a static method?
===

i've got a list of objects which i wish to copy from one source to another. [It was suggested that I could speed things up][1] by using [Parallel.ForEach][2] 

How can I refactor the following pseduo code to leverage `Parallel.ForEach(..)` ?

    var foos = GetFoos().ToList();
    foreach(var foo in foos)
    {
        CopyObjectFromOldBucketToNewBucket(foo, oldBucket, newBucket, 
            accessKeyId, secretAccessKey);
    }

Cheers :)

  [1]: http://stackoverflow.com/questions/5702800/how-to-move-a-lot-of-items-from-one-s3-amazon-bucket-to-another
  [2]: http://msdn.microsoft.com/en-us/library/system.threading.tasks.parallel.foreach.aspx