Fix StreamReader to pass cancellation token into ReadBufferAsync (#27464) (#27501)
authorStephen Toub <stoub@microsoft.com>
Thu, 31 Oct 2019 17:06:30 +0000 (13:06 -0400)
committerDan Moseley <danmose@microsoft.com>
Thu, 31 Oct 2019 17:06:30 +0000 (10:06 -0700)
commitc3fddaa79b1ae1de2656327179fdc863ece4a5af
treee0b36c3e13a96170f144a2579030a27e6000407f
parenta0a1e56cc5fb53b47d5ad43ff100e4de28700b38
Fix StreamReader to pass cancellation token into ReadBufferAsync (#27464) (#27501)

ReadAsyncInternal is correctly passing its token into the two call sites where it delegates directly to the underlying stream, but in one place it calls through ReadBufferAsync, which is currently not defined to take a token.  Fix that, and pass the token through.
src/System.Private.CoreLib/shared/System/IO/StreamReader.cs