7 references to TaskCanceledException
System.Net.Http (6)
System\Net\Http\CancellationHelper.cs (1)
27new TaskCanceledException(s_cancellationMessage, innerException, cancellationToken); // TCE for compatibility with other handlers that use TaskCompletionSource.TrySetCanceled()
System\Net\Http\HttpClient.cs (2)
614e = toThrow = new TaskCanceledException(oce.Message, oce, cancellationToken); 627e = toThrow = new TaskCanceledException(SR.Format(SR.net_http_request_timedout, _timeout.TotalSeconds), new TimeoutException(e.Message, e), oce.CancellationToken);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
327throw new TaskCanceledException(ex.Message, ex, cancellationToken); 351throw new TaskCanceledException(ex.Message, ex, cancellationToken); 1368throw new TaskCanceledException(e.Message, e, cancellationToken);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
98throw new TaskCanceledException(message, new TimeoutException(oce.Message, oce), oce.CancellationToken);