Home

Asynchrony in C# 5 Interactive Tutorial, updated for Framework 4.5 RTM

Some feedback on this downloadable tutorial:

I guess this is your problem and not part of C# 5 (but I haven't checked): If every await present has brackets around the expression, it decides "CS0103 The name 'await' does not exist in the current context" for all awaits. So your "await and exceptions" and "await in a loop" don't compile "out of the box".

Your sample png URL downloads need to have .../images/... inserted to work.

The downloaded string using WebClient is different to what is downloaded for HttpClient (so the total characters downloaded is different). I haven't determined what the difference is (I'm sure I can copy'n'paste the raw HTML into WinMerge if I really cared), but it's not CrLf differences.

After those issues, I've seen nothing else significant (but I haven't downloaded the suggested NuGet packages yet). (I call leaving B at 6000 instead of 2000 in "Task.WhenAny - double await" insignificant.)

Comments

Sign In or Register to comment.