Override ReadAsync and WriteAsync methods on ConsoleStream. (#71971)
* Override ReadAsync and WriteAsync methods on ConsoleStream. The base Stream class implements these overloads by renting a buffer, creating a ReadWriteTask, and copying data as necessary. Instead, ConsoleStreams can just override these Async methods and synchronously call the underlying OS API. Add tests to verify that input and output console streams behave correctly. * Fix stdin tests to only run on supported platforms.
Showing
想要评论请 注册 或 登录