12 references to ThrowIfCancellationRequested
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
410
CancellationHelper.
ThrowIfCancellationRequested
(cancellationRegistration.Token);
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (3)
40
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
80
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
136
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (3)
59
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
100
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
243
CancellationHelper.
ThrowIfCancellationRequested
(ctr.Token);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
357
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
776
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken); // in case cancellation may have disposed of the stream
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (3)
47
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
82
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);
138
CancellationHelper.
ThrowIfCancellationRequested
(cancellationToken);