TcpClient.NetworkStream Async operations - Canceling / Disconnect
问题 Disclaimer: My C# isn't even close to as good as my C++ I am trying to learn how to do async sockets in C# in order to write a test app for a component of mine. I read about a variety of methods, but it seems the most modern is to use TcpClient, get the NetworkStream from it, and call async methods on the NetworkStream that return Task. So, I set off on my adventure. It is not clear how to cancel the async methods properly or if I need to. Am I supposed to manually cancel them when I want to