NetworkStream BeginRead / EndRead

◇◆丶佛笑我妖孽 提交于 2019-12-08 23:08:28

First, I recommend learning a lot about multithreading. Then come back and learn about sockets. Both of these have rather steep learning curves, and trying to tackle both is a lot to handle.

That said, you can post an update to the UI by capturing the UI context via TaskScheduler.FromCurrentSynchronizationContext and scheduling a Task to that TaskScheduler. If the TPL isn't available, then you can just use SynchronizationContext directly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!