Fix StreamReader to pass cancellation token into ReadBufferAsync (#27464)
commit249522036d01e8e4241ea85b5cb4abe6afe3f1b9
authorStephen Toub <stoub@microsoft.com>
Sun, 27 Oct 2019 20:48:18 +0000 (27 16:48 -0400)
committerMarek Safar <marek.safar@gmail.com>
Tue, 29 Oct 2019 22:34:11 +0000 (29 23:34 +0100)
treea97cb831d4bf41f246e00f20d28fb9be3da83f13
parent447cb033991c73da1ef8ada85433dd0b52c02fa5
Fix StreamReader to pass cancellation token into ReadBufferAsync (#27464)

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.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/IO/StreamReader.cs