212 references to IsCompletedSuccessfully
Aspire.Dashboard (1)
src\Shared\TaskHelpers.cs (1)
22if (task is null || task.IsCompletedSuccessfully || task.IsCanceled)
Aspire.Hosting (3)
Health\ResourceHealthCheckService.cs (1)
366var delayInterrupted = delayInterruptedTask.IsCompletedSuccessfully == true;
Orchestrator\ApplicationOrchestrator.cs (1)
65if (waitForDependenciesTask.IsCompletedSuccessfully)
src\Shared\TaskHelpers.cs (1)
22if (task is null || task.IsCompletedSuccessfully || task.IsCanceled)
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (3)
596Assert.False(moveNextTask.IsCompletedSuccessfully, "No logs yet."); 616Assert.False(moveNextTask.IsCompletedSuccessfully, "No logs yet."); 692Assert.False(watchLogsTask1.IsCompletedSuccessfully, "Logs not available yet.");
ResourceNotificationTests.cs (5)
168Assert.True(waitTask.IsCompletedSuccessfully); 184Assert.True(waitTask.IsCompletedSuccessfully); 199Assert.True(waitTask.IsCompletedSuccessfully); 214Assert.True(waitTask.IsCompletedSuccessfully); 262Assert.True(waitTask.IsCompletedSuccessfully);
InMemory.FunctionalTests (32)
Http2\Http2StreamTests.cs (16)
3012Assert.False(dataTask.IsCompletedSuccessfully); 4746Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4802Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4870Assert.True(startingTcs.Task.IsCompletedSuccessfully); 4920Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4986Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5042Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5159Assert.False(startingTcs.Task.IsCompletedSuccessfully); // OnStarting did not get called. 5165Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5235Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5310Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5381Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5451Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5538Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5625Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5714Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called.
Http3\Http3StreamTests.cs (15)
1144Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1193Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1247Assert.True(startingTcs.Task.IsCompletedSuccessfully); 1290Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1343Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1392Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1488Assert.False(startingTcs.Task.IsCompletedSuccessfully); // OnStarting did not get called. 1494Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1545Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1601Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1659Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1715Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1776Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1838Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1903Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called.
src\Servers\Kestrel\shared\ConnectionCompletion.cs (1)
29if (!task.IsCompletedSuccessfully)
InteropTests (2)
Helpers\ClientProcess.cs (1)
46public bool IsReady => _startTcs.Task.IsCompletedSuccessfully;
Helpers\WebsiteProcess.cs (1)
22public bool IsReady => _startTcs.Task.IsCompletedSuccessfully;
Microsoft.AspNetCore.Components (3)
ErrorBoundaryBase.cs (1)
84if (!onErrorTask.IsCompletedSuccessfully)
PersistentState\ComponentStatePersistenceManager.cs (2)
203if (!result.IsCompletedSuccessfully) 231if (current.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeRouteViewTest.cs (1)
350Assert.True(render2Task.IsCompletedSuccessfully);
Microsoft.AspNetCore.Components.Endpoints (3)
RazorComponentEndpointInvoker.cs (1)
153if (!quiesceTask.IsCompletedSuccessfully)
Rendering\Buffering\BufferedTextWriter.cs (1)
55if (!priorTask.IsCompletedSuccessfully)
Results\RazorComponentResultExecutor.cs (1)
84if (!htmlContent.QuiescenceTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\CircuitHostTest.cs (2)
893Assert.True(task.IsCompletedSuccessfully); 936Assert.True(task.IsCompletedSuccessfully);
Circuits\RemoteRendererTest.cs (2)
770Assert.True(task.IsCompletedSuccessfully); 799Assert.True(task.IsCompletedSuccessfully);
Microsoft.AspNetCore.Components.Tests (51)
LayoutViewTest.cs (8)
28Assert.True(setParametersTask.IsCompletedSuccessfully); 47Assert.True(setParametersTask.IsCompletedSuccessfully); 67Assert.True(setParametersTask.IsCompletedSuccessfully); 97Assert.True(setParametersTask.IsCompletedSuccessfully); 129Assert.True(setParametersTask.IsCompletedSuccessfully); 169Assert.True(setParametersTask.IsCompletedSuccessfully); 211Assert.True(setParametersTask1.IsCompletedSuccessfully); 220Assert.True(setParametersTask2.IsCompletedSuccessfully);
NavigationManagerTest.cs (15)
225Assert.True(navigation1.IsCompletedSuccessfully); 254Assert.True(navigation1.IsCompletedSuccessfully); 282Assert.True(navigation1.IsCompletedSuccessfully); 312Assert.True(navigation1.IsCompletedSuccessfully); 336Assert.True(navigation1.IsCompletedSuccessfully); 367Assert.True(navigation1.IsCompletedSuccessfully); 403Assert.True(navigation1.IsCompletedSuccessfully); 442Assert.True(navigation1.IsCompletedSuccessfully); 485Assert.True(navigation1.IsCompletedSuccessfully); 519Assert.True(navigation1.IsCompletedSuccessfully); 576Assert.True(navigation1.IsCompletedSuccessfully); 579Assert.True(navigation2.IsCompletedSuccessfully); 637Assert.True(navigation1.IsCompletedSuccessfully); 640Assert.True(navigation2.IsCompletedSuccessfully); 643Assert.True(navigation3.IsCompletedSuccessfully);
RendererTest.cs (28)
566Assert.True(task.IsCompletedSuccessfully); 594Assert.True(renderTask.IsCompletedSuccessfully); 717Assert.True(renderTask.IsCompletedSuccessfully); 748Assert.True(renderTask.IsCompletedSuccessfully); 777Assert.True(renderTask.IsCompletedSuccessfully); 817Assert.True(renderTask.IsCompletedSuccessfully); 2657Assert.True(renderTask.IsCompletedSuccessfully); 2691Assert.True(renderTask.IsCompletedSuccessfully); 2709Assert.True(renderTask.IsCompletedSuccessfully); 2733Assert.True(renderTask.IsCompletedSuccessfully); 2784Assert.True(renderTask.IsCompletedSuccessfully); 2819Assert.True(renderTask.IsCompletedSuccessfully); 2873Assert.True(renderTask.IsCompletedSuccessfully); 3066Assert.True(renderTask.IsCompletedSuccessfully); 3097Assert.True(renderTask.IsCompletedSuccessfully); 3571Assert.True(task.IsCompletedSuccessfully); 3604Assert.True(renderTask.IsCompletedSuccessfully); 3637Assert.True(renderTask.IsCompletedSuccessfully); 3843Assert.True(renderTask.IsCompletedSuccessfully); 3897Assert.True(renderTask.IsCompletedSuccessfully); 3953Assert.True(renderTask.IsCompletedSuccessfully); 3976Assert.True(renderTask.IsCompletedSuccessfully); 4016Assert.True(renderTask.IsCompletedSuccessfully); 4066Assert.True(renderTask.IsCompletedSuccessfully); 4100Assert.True(renderTask.IsCompletedSuccessfully); 4348Assert.True(dispatchEventTask.IsCompletedSuccessfully); 4400Assert.True(dispatchEventTask.IsCompletedSuccessfully); 4676Assert.True(task.IsCompletedSuccessfully);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
MiddlewareTests.cs (2)
171Assert.True(firstRequest.IsCompletedSuccessfully); 176Assert.True(thirdRequest.IsCompletedSuccessfully);
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
151if (!policyTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
78if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\CallHandlers\ServerCallHandlerBase.cs (1)
53if (handleCallTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\HttpResponseWritingExtensions.cs (1)
53if (!startAsyncTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Http.Extensions (6)
RequestDelegateFactory.cs (6)
577if (task.IsCompletedSuccessfully) 2418if (task.IsCompletedSuccessfully) 2440if (task.IsCompletedSuccessfully) 2457if (task.IsCompletedSuccessfully) 2475if (task.IsCompletedSuccessfully) 2513if (task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
2892Assert.True(result.RequestDelegate(httpContext).IsCompletedSuccessfully);
Microsoft.AspNetCore.Mvc.Core (26)
Infrastructure\ControllerActionInvoker.cs (3)
300if (!lastTask.IsCompletedSuccessfully) 350if (!task.IsCompletedSuccessfully) 466if (!lastTask.IsCompletedSuccessfully)
Infrastructure\ResourceInvoker.cs (23)
77if (!task.IsCompletedSuccessfully) 233if (!lastTask.IsCompletedSuccessfully) 348if (!task.IsCompletedSuccessfully) 484if (!task.IsCompletedSuccessfully) 562if (!task.IsCompletedSuccessfully) 606if (!task.IsCompletedSuccessfully) 655if (!task.IsCompletedSuccessfully) 682if (!task.IsCompletedSuccessfully) 722if (!task.IsCompletedSuccessfully) 793if (!task.IsCompletedSuccessfully) 826if (!task.IsCompletedSuccessfully) 837if (!task.IsCompletedSuccessfully) 858if (!task.IsCompletedSuccessfully) 917if (!task.IsCompletedSuccessfully) 957if (!lastTask.IsCompletedSuccessfully) 1009if (!lastTask.IsCompletedSuccessfully) 1057if (!lastTask.IsCompletedSuccessfully) 1095if (!lastTask.IsCompletedSuccessfully) 1181if (!task.IsCompletedSuccessfully) 1263if (!task.IsCompletedSuccessfully) 1313if (!task.IsCompletedSuccessfully) 1359if (!lastTask.IsCompletedSuccessfully) 1413if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
PageLoaderMatcherPolicy.cs (1)
79if (compiled.IsCompletedSuccessfully)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Buffers\PagedBufferedTextWriter.cs (3)
106return flushTask.IsCompletedSuccessfully ? 121return flushTask.IsCompletedSuccessfully ? 136return flushTask.IsCompletedSuccessfully ?
Controller.cs (1)
354if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperRunner.cs (1)
40if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Routing (4)
EndpointMiddleware.cs (1)
73if (!requestTask.IsCompletedSuccessfully)
EndpointRoutingMiddleware.cs (3)
72if (!matcherTask.IsCompletedSuccessfully) 78if (!matchTask.IsCompletedSuccessfully) 199if (!requestTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
235if (!initializeTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\HttpProtocol.cs (4)
961if (!startingTask.IsCompletedSuccessfully) 1515if (!initializeTask.IsCompletedSuccessfully) 1546if (!onStartingTask.IsCompletedSuccessfully) 1632if (!startingTask.IsCompletedSuccessfully)
Internal\Http\MessageBody.cs (1)
72if (!startTask.IsCompletedSuccessfully)
Internal\Infrastructure\KestrelConnection.cs (1)
114if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
191Assert.True(bindTask.IsCompletedSuccessfully); 219Assert.True(bindTask.IsCompletedSuccessfully);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (1)
29if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicStreamContext.cs (2)
143Debug.Assert(_processingTask.IsCompletedSuccessfully); 226if (_stream.ReadsClosed.IsCompletedSuccessfully)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (1)
29if (!task.IsCompletedSuccessfully)
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.L2.cs (1)
36if (!pendingLegacy.IsCompletedSuccessfully)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
144if (task.IsCompletedSuccessfully)
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
618return tcs.Task.IsCompletedSuccessfully ?
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
107if (copyTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
135if (copyTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
218if (sendRequestTask.IsCompletedSuccessfully && 219_stream.WritesClosed is { IsCompletedSuccessfully: false } writesClosed)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
870if (sendRequestContentTask != null && !sendRequestContentTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
109if (copyTask.IsCompletedSuccessfully)
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
527var e = new PingCompletedEventArgs(t.IsCompletedSuccessfully ? t.Result : null, t.Exception, t.IsCanceled, asyncOp.UserSuppliedState);
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
761if (task.IsCompletedSuccessfully)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
891return (_sendRequestTask != null) && (_sendRequestTask.IsCompletedSuccessfully);
System.Net.Security (3)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
31Debug.Assert(task.IsCompletedSuccessfully); 67if (task.IsCompletedSuccessfully)
System\Net\Security\SslStream.IO.cs (1)
642if (waiterTask.IsCompletedSuccessfully)
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (3)
2651if (ti.IsCompletedSuccessfully) 2674if (t.IsCompletedSuccessfully) 2715if (t.IsCompletedSuccessfully)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
493return cancellationToken.CanBeCanceled || !lockTask.IsCompletedSuccessfully ?
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (3)
590if (semaphoreLockTask.IsCompletedSuccessfully) 641if (semaphoreLockTask.IsCompletedSuccessfully) 1018if (semaphoreLockTask.IsCompletedSuccessfully)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
313if (semaphoreLockTask.IsCompletedSuccessfully // lock has been acquired 613if (semaphoreLockTask.IsCompletedSuccessfully // lock has been acquired
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
556Debug.Assert(asyncWaiter.IsCompletedSuccessfully, "The semaphore wait should always complete successfully."); 563Debug.Assert(t.IsCompletedSuccessfully, "The semaphore wait should always complete successfully.");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (1)
322return IsCompletedSuccessfully && typeof(TResult) != typeof(VoidTaskResult) ?
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
114if (!task.IsCompletedSuccessfully)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\CachedCompletedInt32Task.cs (1)
26Debug.Assert(task.IsCompletedSuccessfully, "Expected that a stored last task completed successfully");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (3)
351IsCompletedSuccessfully ? "" + m_result : SR.TaskT_DebuggerNoResult; 460if (!IsCompletedSuccessfully) ThrowIfExceptional(includeTaskCanceledExceptions: true); 463Debug.Assert(IsCompletedSuccessfully, "Task<T>.Result getter: Expected result to have been set.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6093if (!completedTask.IsCompletedSuccessfully)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
302completedTask.IsCompletedSuccessfully ?
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExtensions.cs (2)
20!task.IsCompletedSuccessfully ? Task.CreateUnwrapPromise<VoidTaskResult>(task, lookForOce: false) : 36!task.IsCompletedSuccessfully ? Task.CreateUnwrapPromise<TResult>(task, lookForOce: false) :
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
333return t.IsCompletedSuccessfully; 740return t.IsCompletedSuccessfully;
System.Private.Xml (1)
System\Xml\AsyncHelper.cs (1)
18return task.IsCompletedSuccessfully;
System.Security.Cryptography (2)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
31Debug.Assert(task.IsCompletedSuccessfully); 67if (task.IsCompletedSuccessfully)
System.Threading.Tasks.Dataflow (1)
Blocks\TransformManyBlock.IAsyncEnumerable.cs (1)
40t.ContinueWith(static t => Debug.Assert(t.IsCompletedSuccessfully), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);