81 references to IsFaulted
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Microsoft.AspNetCore.Components (3)
ErrorBoundaryBase.cs (1)
95if (onExceptionTask.IsFaulted)
NavigationManager.cs (1)
397if (completedHandlerTask.IsFaulted)
RenderTree\Renderer.cs (1)
810if (updateDisplayTask.IsFaulted)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\AutoRenderComponent.cs (1)
31if (t.IsFaulted)
src\Components\Shared\test\TestRenderer.cs (1)
83if (task.IsFaulted)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
src\Components\Shared\test\AutoRenderComponent.cs (1)
31if (t.IsFaulted)
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AutoRenderComponent.cs (1)
31if (t.IsFaulted)
src\Components\Shared\test\TestRenderer.cs (1)
83if (task.IsFaulted)
Microsoft.AspNetCore.Components.Tests (3)
RendererTest.cs (1)
5209if (t.IsFaulted)
src\Components\Shared\test\AutoRenderComponent.cs (1)
31if (t.IsFaulted)
src\Components\Shared\test\TestRenderer.cs (1)
83if (task.IsFaulted)
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.cs (1)
73if (quiescenceTask.IsFaulted)
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\AutoRenderComponent.cs (1)
31if (t.IsFaulted)
src\Components\Shared\test\TestRenderer.cs (1)
83if (task.IsFaulted)
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyDispatcher.cs (2)
100if (t.IsFaulted) 144if (t.IsFaulted)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
TaskExtensions.cs (1)
15if (completed == otherTask && otherTask.IsFaulted)
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
294else if (resultTask.IsFaulted || resultTask.IsCanceled)
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\LongPollingTransport.cs (1)
98_error = sending.IsFaulted ? sending.Exception!.InnerException : null;
Internal\ServerSentEventsTransport.cs (1)
116_error = sending.IsFaulted ? sending.Exception!.InnerException : null;
Microsoft.AspNetCore.Owin (1)
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
88else if (task.IsFaulted)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
594if (writeTask.IsFaulted || writeTask.IsCanceled || !writeTask.IsCompleted)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TaskExtensions.cs (1)
15if (completed == otherTask && otherTask.IsFaulted)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TaskExtensions.cs (1)
15if (completed == otherTask && otherTask.IsFaulted)
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
361if (groupedTasks.IsFaulted)
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
System.Net.Http (4)
System\Net\Http\MessageProcessingHandler.cs (1)
66if (task.IsFaulted)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
138if (closeTask.IsFaulted && NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
194if (task.IsFaulted) 207Debug.Assert(task.IsFaulted);
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
448if (_connectionCloseTcs.Task.IsFaulted || connectionAbortedByPeer)
System.Net.Security (3)
System\Net\Security\SslStreamCertificateContext.Linux.cs (3)
177if (pending is not null && !pending.IsFaulted) 189if (pending is not null && !pending.IsFaulted) 230if (pending is null || pending.IsFaulted)
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (5)
2381if (t.IsFaulted || t.IsCanceled) 2403if (t.IsFaulted || t.IsCanceled) 2464if (t.IsFaulted || t.IsCanceled) 2485if (t.IsFaulted || t.IsCanceled) 3883Debug.Assert(t.IsCanceled || t.IsFaulted);
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (4)
230Debug.Assert(faultedTask != null && faultedTask.IsFaulted && faultedTask.Exception!.InnerExceptionCount > 0, 382if (!exclusiveTask.IsFaulted) m_exclusiveTaskScheduler.ExecuteTask(exclusiveTask); 429if (!concurrentTask.IsFaulted) m_concurrentTaskScheduler.ExecuteTask(concurrentTask); 647Debug.Assert(t.IsFaulted, "Task should be faulted due to the scheduler faulting it and throwing the exception.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (12)
1255if (IsFaulted) e = GetExceptions(false); 1260Debug.Assert((e == null) || IsFaulted, "Task.Exception_get(): returning non-null value when not Faulted"); 1518/// If <see cref="IsFaulted"/> is true, the Task's <see cref="Status"/> will be equal to 1863Debug.Assert(IsFaulted && ExceptionRecorded, "Must only be used when the task has faulted with exceptions."); 2161if (childTask.IsFaulted && !childTask.IsExceptionObservedByParent) 2217if (task.IsFaulted && !task.IsExceptionObservedByParent) 2370log.TaskCompleted(previousTask.m_taskScheduler!.Id, previousTask.Id, this.Id, IsFaulted); 2372log.TaskCompleted(TaskScheduler.Current.Id, 0, this.Id, IsFaulted); 4962if (task.IsFaulted) exceptionSeen = true; 4981if (task.IsFaulted) exceptionSeen = true; 6105if (task.IsFaulted) 6380if (task.IsFaulted)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
355return t.IsFaulted; 761return t.IsFaulted;
System.Threading.Tasks.Dataflow (21)
Base\DataflowBlock.cs (1)
2294return sourceCompletionTask != null && sourceCompletionTask.IsFaulted ?
Blocks\ActionBlock.cs (1)
211if (completed.IsFaulted)
Blocks\BatchBlock.cs (1)
84Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Blocks\BatchedJoinBlock.cs (2)
102Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion."); 354Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Blocks\BroadcastBlock.cs (3)
94Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion."); 1163Debug.Assert(!Completion.IsCompleted || Completion.IsFaulted, "The block must either not be completed or be faulted if we're still storing exceptions."); 1175Debug.Assert(!Completion.IsCompleted || Completion.IsFaulted, "The block must either not be completed or be faulted if we're still storing exceptions.");
Blocks\BufferBlock.cs (1)
76Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Blocks\JoinBlock.cs (2)
98Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion."); 323Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Blocks\TransformBlock.cs (2)
146if (completed.IsFaulted) sourceCore.AddAndUnwrapAggregateException(completed.Exception!); 157Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Blocks\TransformManyBlock.cs (2)
142if (completed.IsFaulted) sourceCore.AddAndUnwrapAggregateException(completed.Exception!); 153Debug.Assert(completed.IsFaulted, "The source must be faulted in order to trigger a target completion.");
Internal\Common.cs (2)
484Debug.Assert(task.IsFaulted, "The task should have been faulted if it failed to start."); 552AggregateException? exception = sourceCompletionTask.IsFaulted ? sourceCompletionTask.Exception : null;
Internal\DataflowEtwProvider.cs (1)
141if (completionTask.IsFaulted)
Internal\SourceCore.cs (3)
463Debug.Assert(!Completion.IsCompleted || Completion.IsFaulted, "The block must either not be completed or be faulted if we're still storing exceptions."); 475Debug.Assert(!Completion.IsCompleted || Completion.IsFaulted, "The block must either not be completed or be faulted if we're still storing exceptions."); 490Debug.Assert(!Completion.IsCompleted || Completion.IsFaulted, "The block must either not be completed or be faulted if we're still storing exceptions.");