public IEnumerable <Car> AllCarsInParallelSync() { IEnumerable <Car> cars = PayloadSources.AsParallel() .SelectMany(uri => CarService.GetCars(uri)).AsEnumerable(); return(cars); }
public IEnumerable <Car> AllCarsSync() { IEnumerable <Car> cars = PayloadSources.SelectMany(x => CarService.GetCars(x)); return(cars); }