Paolo ponzano - 141 - Feb 18, 2014

ok but are you still trying to block on Async? BTW which file is this in?

paolo ponzano:

Yes I was trying to wait the completition on Async, you can take a look on MainWindow.xaml.cs, the method file si Wait_Click

ok there’s no reason you need to block there, you should just change it to use Task.WhenAll. 

paolo ponzano:

If I was under 4.5 yes…under FW 4 I can’t at least without using BCL

It seems in .NET 4.0 you should be able to use ContinueWhenAll: http://stackoverflow.com/questions/11512590/net-4-equivalent-of-task-whenall

Note: if you just want to execute the actions concurrently you don’t have to use async, you can just run them concurrently and block on the results, I’ve got some useful extension methods that makes this easy, see: https://github.com/ServiceStack/ServiceStack/commit/b83985813f335eb19cf1864be4b00b0ecf968bef