13 references to ShouldWrapInOperationCanceledException
System.Net.Http (13)
System\Net\Http\HttpContent.cs (1)
451
if (CancellationHelper.
ShouldWrapInOperationCanceledException
(e, cancellationToken))
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (2)
234
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
279
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (2)
87
if (CancellationHelper.
ShouldWrapInOperationCanceledException
(e, cancellationToken))
141
return CancellationHelper.
ShouldWrapInOperationCanceledException
(exception, cancellationToken) ?
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (2)
62
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
123
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (2)
87
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
152
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
906
if (CancellationHelper.
ShouldWrapInOperationCanceledException
(exception, cancellationToken))
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (3)
69
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
125
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))
216
catch (Exception exc) when (CancellationHelper.
ShouldWrapInOperationCanceledException
(exc, cancellationToken))