24 references to TaskCanceledException
Aspire.Dashboard.Components.Tests (1)
Layout\ResourceServiceConnectionProviderTests.cs (1)
21JSInterop.SetupVoid("updateResourceServiceConnectionState", _ => true).SetException(new TaskCanceledException());
Aspire.Hosting.Tests (1)
Health\FriendlyHealthCheckErrorMessagesTests.cs (1)
190var exception = new TaskCanceledException();
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
93throw new TaskCanceledException();
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
93throw new TaskCanceledException();
Microsoft.AspNetCore.Server.IIS (2)
Core\EmptyStream.cs (1)
85throw new TaskCanceledException();
Core\HttpRequestStream.cs (1)
133throw new TaskCanceledException();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
131static void ThrowTaskCanceledException() => throw new TaskCanceledException();
Microsoft.Extensions.AI.Evaluation.Console.Tests (11)
ExceptionUtilitiesTests.cs (11)
33var exception = new TaskCanceledException(); 49var exception = new AggregateException(new TaskCanceledException()); 59new TaskCanceledException(), 95new TaskCanceledException(), 99var exception2 = new AggregateException(new TaskCanceledException(), exception1); 107var exception1 = new AggregateException(new TaskCanceledException(), new InvalidOperationException()); 108var exception2 = new AggregateException(new TaskCanceledException(), exception1); 125var exception1 = new AggregateException(new TaskCanceledException(), new OperationCanceledException()); 127var exception3 = new AggregateException(exception1, exception2, new TaskCanceledException()); 135var exception1 = new AggregateException(new TaskCanceledException(), new OperationCanceledException()); 137var exception3 = new AggregateException(exception1, exception2, new TaskCanceledException());
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
ExceptionSummarizerTests.cs (1)
244var exception = new Exception("test", new TaskCanceledException());
HttpExceptionSummaryProviderTests.cs (1)
134Exception exception2 = new TaskCanceledException();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggerTest.cs (2)
448var exception = new TaskCanceledException(); 837var sendAsyncException = new TaskCanceledException();
Microsoft.Extensions.Http.Resilience.Tests (1)
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
24new object[] { new TaskCanceledException(), false },
Microsoft.TemplateEngine.Edge (1)
TemplateConstraintManager.cs (1)
232throw new TaskCanceledException();