198 references to IsCompletedSuccessfully
InMemory.FunctionalTests (32)
Http2\Http2StreamTests.cs (16)
2673Assert.False(dataTask.IsCompletedSuccessfully); 4172Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4228Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4296Assert.True(startingTcs.Task.IsCompletedSuccessfully); 4346Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4412Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4468Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4585Assert.False(startingTcs.Task.IsCompletedSuccessfully); // OnStarting did not get called. 4591Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4661Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4736Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4807Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4876Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 4958Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5040Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 5124Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called.
Http3\Http3StreamTests.cs (15)
1147Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1196Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1250Assert.True(startingTcs.Task.IsCompletedSuccessfully); 1293Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1346Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1395Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1491Assert.False(startingTcs.Task.IsCompletedSuccessfully); // OnStarting did not get called. 1497Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1548Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1604Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1662Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1718Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1779Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1841Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called. 1906Assert.True(startingTcs.Task.IsCompletedSuccessfully); // OnStarting got called.
src\Servers\Kestrel\shared\ConnectionCompletion.cs (1)
29if (!task.IsCompletedSuccessfully)
InteropTests (2)
Helpers\ClientProcess.cs (1)
44public 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)
Infrastructure\ComponentStatePersistenceManager.cs (2)
146if (!result.IsCompletedSuccessfully) 167if (current.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeRouteViewTest.cs (1)
350Assert.True(render2Task.IsCompletedSuccessfully);
Microsoft.AspNetCore.Components.Endpoints (3)
RazorComponentEndpointInvoker.cs (1)
136if (!quiesceTask.IsCompletedSuccessfully)
Rendering\Buffering\BufferedTextWriter.cs (1)
55if (!priorTask.IsCompletedSuccessfully)
Results\RazorComponentResultExecutor.cs (1)
83if (!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)
768Assert.True(task.IsCompletedSuccessfully); 797Assert.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); 252Assert.True(navigation1.IsCompletedSuccessfully); 278Assert.True(navigation1.IsCompletedSuccessfully); 306Assert.True(navigation1.IsCompletedSuccessfully); 330Assert.True(navigation1.IsCompletedSuccessfully); 359Assert.True(navigation1.IsCompletedSuccessfully); 393Assert.True(navigation1.IsCompletedSuccessfully); 430Assert.True(navigation1.IsCompletedSuccessfully); 471Assert.True(navigation1.IsCompletedSuccessfully); 505Assert.True(navigation1.IsCompletedSuccessfully); 559Assert.True(navigation1.IsCompletedSuccessfully); 562Assert.True(navigation2.IsCompletedSuccessfully); 618Assert.True(navigation1.IsCompletedSuccessfully); 621Assert.True(navigation2.IsCompletedSuccessfully); 624Assert.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)
573if (task.IsCompletedSuccessfully) 2381if (task.IsCompletedSuccessfully) 2403if (task.IsCompletedSuccessfully) 2420if (task.IsCompletedSuccessfully) 2438if (task.IsCompletedSuccessfully) 2476if (task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
2886Assert.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)
234if (!initializeTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\HttpProtocol.cs (4)
948if (!startingTask.IsCompletedSuccessfully) 1502if (!initializeTask.IsCompletedSuccessfully) 1533if (!onStartingTask.IsCompletedSuccessfully) 1619if (!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)
24if (!pendingLegacy.IsCompletedSuccessfully)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
232if (task.IsCompletedSuccessfully)
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
618return tcs.Task.IsCompletedSuccessfully ?
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
107if (copyTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
135if (copyTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
832if (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)
620if (task.IsCompletedSuccessfully)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
889return (_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)
616if (waiterTask.IsCompletedSuccessfully)
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (3)
2506if (ti.IsCompletedSuccessfully) 2527if (t.IsCompletedSuccessfully) 2564if (t.IsCompletedSuccessfully)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
420return 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)
564Debug.Assert(asyncWaiter.IsCompletedSuccessfully, "The semaphore wait should always complete successfully."); 571Debug.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)
6043if (!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; 739return 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)
43t.ContinueWith(static t => Debug.Assert(t.IsCompletedSuccessfully), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);