Async samples with RC of VS2012
Hi,
I installed the RC and fired up the async sample library that can be found
http://www.linqpad.net/RichClient/SampleLibraries.aspx
I think the samples are now outdated. I'm I correct that the only differences that you have to replace TaskEx with Task?
I just started and that seems to the only diff till now
Kind Regards, Tom
I installed the RC and fired up the async sample library that can be found
http://www.linqpad.net/RichClient/SampleLibraries.aspx
I think the samples are now outdated. I'm I correct that the only differences that you have to replace TaskEx with Task?
I just started and that seems to the only diff till now
Kind Regards, Tom
Comments
-
Yes, I guess I should update them. The other difference is that the TAP is no longer supported with WebClient (no progress reporting).
-
I'm having some issues with Intellisense as well
Run() does not show up in the list as in
Task.Run(() => Console.WriteLine("zear") );
I've included the ns System.Threading.Tasks so I expect it to show -
I came to the sample with the WebClient.
It turns out you can use System.Net.Http.HttpClient with little modification and it supports cancellation. -
I have the same problem with Autocompletion, Task.Run is not visible in the list. Using 4.42.01, .NET 4.5 installed.
-
The issue with autocompletion is a bug that's been fixed in recent betas.