Skip to content

Instantly share code, notes, and snippets.

@wiig-with-a-k
Created August 14, 2015 13:49
Show Gist options
  • Save wiig-with-a-k/a3710ecafa009d475db6 to your computer and use it in GitHub Desktop.
Save wiig-with-a-k/a3710ecafa009d475db6 to your computer and use it in GitHub Desktop.
Parallel.ForEach(_configuration.StorageVolumes, x =>
{
var listForStorage = paths.Where(p => p.StartsWith(x.BaseLocation)).ToList();
Console.WriteLine(string.Format("Starting volume {0} with {1} folders", x.BaseLocation, listForStorage.Count.ToString()));
var storageErrors = _client.CheckCDNForGuidConsistencyErrors(x, listForStorage);
lock(allErrors)
{
allErrors.AddRange(storageErrors);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment