Code from "Pro Asynchronous Programming in .NET"