You want the responsiveness that asynchronous programming in the Microsoft .NET Framework 4 provides, but also need your asynchronous methods to work with other code in your application. Here's how ...
I've been reading up on async/await somewhat but there are still things I don't get. I have experience writing socket servers with the Begin/End pattern, but I find some of this async/await confusing.
Why do you not want to handle exceptions in your app? You'll certainly get them if you're doing any sort of network IO. I would have the while loop and in it i would ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果