182 references to IsCompletedSuccessfully
aspire (4)
Backchannel\AppHostCliBackchannel.cs (1)
288if (rpcTask.IsCompletedSuccessfully)
Backchannel\ResourceSnapshotWatcher.cs (1)
80if (!_initialLoadTcs.Task.IsCompletedSuccessfully)
Processes\IsolatedProcess.Unix.cs (1)
132if (!completedTask.IsCompletedSuccessfully)
Telemetry\TelemetryTagsSource.cs (1)
44if (tagsTask.IsCompletedSuccessfully)
Aspire.Cli.Tests (9)
Commands\RunCommandTests.cs (4)
359Assert.True(runCancellationObserved.Task.IsCompletedSuccessfully); 501Assert.True(runCancellationObserved.Task.IsCompletedSuccessfully); 612Assert.True(appHostReady.Task.IsCompletedSuccessfully); 708Assert.True(teardownCompleted.Task.IsCompletedSuccessfully, "Detached child exited before the AppHost teardown completed.");
Interaction\ExtensionInteractionServiceTests.cs (1)
104Assert.True(cancellationMessageCalled.Task.IsCompletedSuccessfully);
NuGet\NuGetPackagePrefetcherTests.cs (2)
457Assert.True(templateFinished.Task.IsCompletedSuccessfully); 458Assert.True(cliFinished.Task.IsCompletedSuccessfully);
Telemetry\TelemetryFixture.cs (1)
63if (TagsSource.TagsTask is { IsCompletedSuccessfully: true } tagsTask)
TestServices\FakeAppHostServerSession.cs (1)
51return _exit.Task.IsCompletedSuccessfully ? _exit.Task.Result : null;
Aspire.Dashboard (2)
Components\Controls\ApplicationName.razor.cs (1)
34if (DashboardClient.IsEnabled && !DashboardClient.WhenConnected.IsCompletedSuccessfully)
src\Shared\TaskHelpers.cs (1)
22if (task is null || task.IsCompletedSuccessfully || task.IsCanceled)
Aspire.Hosting (9)
ApplicationModel\ResourceExtensions.cs (3)
318return annotation.AsCallbackAnnotation().TryGetCachedResult(out var cachedTask) && cachedTask!.IsCompletedSuccessfully 1652cachedTask!.IsCompletedSuccessfully) 1691cachedTask!.IsCompletedSuccessfully)
Backchannel\AppHostStartupState.cs (1)
20public bool IsReady => _ready.Task.IsCompletedSuccessfully;
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1237if (waitForValueTcs.Task is { IsCompletedSuccessfully: true } valueTask &&
Eventing\DistributedApplicationEventing.cs (1)
87if (callbackTask.IsCompletedSuccessfully)
Health\ResourceHealthCheckService.cs (1)
384var delayInterrupted = delayInterruptedTask.IsCompletedSuccessfully == true;
Orchestrator\ApplicationOrchestrator.cs (1)
173if (waitForDependenciesTask.IsCompletedSuccessfully)
src\Shared\TaskHelpers.cs (1)
22if (task is null || task.IsCompletedSuccessfully || task.IsCanceled)
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
526Assert.True(existingTcs.Task.IsCompletedSuccessfully);
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (2)
452if (!_startedTcs.Task.IsCompletedSuccessfully) 491if (_appTcs.Task is not { IsCompletedSuccessfully: true } appTask)
Aspire.Hosting.Tests (35)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1005Assert.True(cachedAfter!.IsCompletedSuccessfully);
Dcp\DcpExecutorTests.cs (3)
1439Assert.False(moveNextTask.IsCompletedSuccessfully, "No logs yet."); 1459Assert.False(moveNextTask.IsCompletedSuccessfully, "No logs yet."); 1538Assert.False(watchLogsTask1.IsCompletedSuccessfully, "Logs not available yet.");
InteractionServiceTests.cs (6)
151Assert.True(completedInteraction1.CompletionTcs.Task.IsCompletedSuccessfully); 159Assert.True(completedInteraction2.CompletionTcs.Task.IsCompletedSuccessfully); 545Assert.True(interaction.CompletionTcs.Task.IsCompletedSuccessfully); 1366Assert.True(interaction.CompletionTcs.Task.IsCompletedSuccessfully); 1506Assert.True(interaction.CompletionTcs.Task.IsCompletedSuccessfully); 1542Assert.True(interaction.CompletionTcs.Task.IsCompletedSuccessfully);
Orchestrator\ApplicationOrchestratorTests.cs (1)
160Assert.True(initResourceTcs.Task.IsCompletedSuccessfully);
Orchestrator\ParameterProcessorTests.cs (15)
45Assert.True(param.WaitForValueTcs.Task.IsCompletedSuccessfully); 71Assert.True(param.WaitForValueTcs.Task.IsCompletedSuccessfully); 253Assert.True(param1.WaitForValueTcs!.Task.IsCompletedSuccessfully); 254Assert.True(param2.WaitForValueTcs!.Task.IsCompletedSuccessfully); 255Assert.True(secretParam.WaitForValueTcs!.Task.IsCompletedSuccessfully); 610Assert.True(explicitParameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 611Assert.True(referencedParameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 653Assert.True(explicitParameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 679Assert.True(parameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 701Assert.True(parameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 723Assert.True(parameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 783Assert.True(param.WaitForValueTcs.Task.IsCompletedSuccessfully); 820Assert.True(parameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 860Assert.True(parameterResource.WaitForValueTcs.Task.IsCompletedSuccessfully); 1385Assert.True(parameterWithGenerateDefault.WaitForValueTcs.Task.IsCompletedSuccessfully);
Pipelines\DistributedApplicationPipelineTests.cs (1)
2074Assert.True(paramResource.WaitForValueTcs.Task.IsCompletedSuccessfully);
ResourceNotificationTests.cs (8)
244Assert.True(waitTask.IsCompletedSuccessfully); 260Assert.True(waitTask.IsCompletedSuccessfully); 275Assert.True(waitTask.IsCompletedSuccessfully); 290Assert.True(waitTask.IsCompletedSuccessfully); 338Assert.True(waitTask.IsCompletedSuccessfully); 1298Assert.True(waitTask.IsCompletedSuccessfully); 1301Assert.True(resourceEvent.Snapshot.ResourceReadyEvent.EventTask.IsCompletedSuccessfully); 1366Assert.True(waitTask.IsCompletedSuccessfully);
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
105if (!waitForResourceTasks[i].IsCompletedSuccessfully)
Aspire.TerminalHost (4)
DcpUpstreamAdapter.cs (4)
138if (!_connectedTcs.Task.IsCompletedSuccessfully) 173if (!_connectedTcs.Task.IsCompletedSuccessfully) 191if (_connectedTcs.Task.IsCompletedSuccessfully) 199if (_connectedTcs.Task.IsCompletedSuccessfully)
CatalogDb (1)
CatalogDbInitializerHealthCheck.cs (1)
13{ IsCompletedSuccessfully: true } => Task.FromResult(HealthCheckResult.Healthy()),
Microsoft.AspNetCore.Components (3)
ErrorBoundaryBase.cs (1)
84if (!onErrorTask.IsCompletedSuccessfully)
PersistentState\ComponentStatePersistenceManager.cs (2)
236if (!result.IsCompletedSuccessfully) 264if (current.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Endpoints (3)
RazorComponentEndpointInvoker.cs (1)
163if (!quiesceTask.IsCompletedSuccessfully)
Rendering\Buffering\BufferedTextWriter.cs (1)
55if (!priorTask.IsCompletedSuccessfully)
Results\RazorComponentResultExecutor.cs (1)
84if (!htmlContent.QuiescenceTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
287if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
183if (!result.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 (2)
Internal\CallHandlers\ServerCallHandlerBase.cs (1)
53if (handleCallTask.IsCompletedSuccessfully)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\UnaryServerMethodInvoker.cs (1)
126if (invokerTask.IsCompletedSuccessfully && serviceHandle.Instance != null)
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\HttpResponseWritingExtensions.cs (1)
53if (!startAsyncTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Http.Extensions (6)
RequestDelegateFactory.cs (6)
585if (task.IsCompletedSuccessfully) 2494if (task.IsCompletedSuccessfully) 2516if (task.IsCompletedSuccessfully) 2533if (task.IsCompletedSuccessfully) 2551if (task.IsCompletedSuccessfully) 2589if (task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Mvc.Core (26)
Infrastructure\ControllerActionInvoker.cs (3)
302if (!lastTask.IsCompletedSuccessfully) 352if (!task.IsCompletedSuccessfully) 468if (!lastTask.IsCompletedSuccessfully)
Infrastructure\ResourceInvoker.cs (23)
81if (!task.IsCompletedSuccessfully) 237if (!lastTask.IsCompletedSuccessfully) 352if (!task.IsCompletedSuccessfully) 488if (!task.IsCompletedSuccessfully) 566if (!task.IsCompletedSuccessfully) 610if (!task.IsCompletedSuccessfully) 659if (!task.IsCompletedSuccessfully) 686if (!task.IsCompletedSuccessfully) 726if (!task.IsCompletedSuccessfully) 797if (!task.IsCompletedSuccessfully) 830if (!task.IsCompletedSuccessfully) 841if (!task.IsCompletedSuccessfully) 862if (!task.IsCompletedSuccessfully) 921if (!task.IsCompletedSuccessfully) 961if (!lastTask.IsCompletedSuccessfully) 1013if (!lastTask.IsCompletedSuccessfully) 1061if (!lastTask.IsCompletedSuccessfully) 1099if (!lastTask.IsCompletedSuccessfully) 1185if (!task.IsCompletedSuccessfully) 1267if (!task.IsCompletedSuccessfully) 1317if (!task.IsCompletedSuccessfully) 1363if (!lastTask.IsCompletedSuccessfully) 1417if (!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)
72if (!requestTask.IsCompletedSuccessfully)
EndpointRoutingMiddleware.cs (3)
111if (!matcherTask.IsCompletedSuccessfully) 117if (!matchTask.IsCompletedSuccessfully) 238if (!requestTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
238if (!initializeTask.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\HttpProtocol.cs (4)
978if (!startingTask.IsCompletedSuccessfully) 1541if (!initializeTask.IsCompletedSuccessfully) 1572if (!onStartingTask.IsCompletedSuccessfully) 1658if (!startingTask.IsCompletedSuccessfully)
Internal\Http\MessageBody.cs (1)
72if (!startTask.IsCompletedSuccessfully)
Internal\Infrastructure\KestrelConnection.cs (1)
114if (!task.IsCompletedSuccessfully)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicStreamContext.cs (2)
143Debug.Assert(_processingTask.IsCompletedSuccessfully); 228if (_stream.ReadsClosed.IsCompletedSuccessfully)
src\aspnetcore\src\Servers\Kestrel\shared\ConnectionCompletion.cs (1)
29if (!task.IsCompletedSuccessfully)
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.L2.cs (1)
34if (!pendingLegacy.IsCompletedSuccessfully)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
140if (task.IsCompletedSuccessfully)
Microsoft.TemplateEngine.Cli (2)
Commands\create\InstantiateCommand.TabCompletion.cs (2)
158if (constraintEvaluationTask.IsCompletedSuccessfully) 206if (task.Task.IsCompletedSuccessfully)
System.Diagnostics.Process (2)
System\Diagnostics\Process.Multiplexing.cs (2)
454if (outputTask.IsCompletedSuccessfully) 459if (errorTask.IsCompletedSuccessfully)
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
609return tcs.Task.IsCompletedSuccessfully ?
System.Memory (1)
src\runtime\src\libraries\Common\src\System\Threading\Tasks\CachedCompletedInt32Task.cs (1)
26Debug.Assert(task.IsCompletedSuccessfully, "Expected that a stored last task completed successfully");
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)
240if (sendRequestTask.IsCompletedSuccessfully && 241_stream.WritesClosed is { IsCompletedSuccessfully: false } writesClosed)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
875if (sendRequestContentTask != null && !sendRequestContentTask.IsCompletedSuccessfully)
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
110if (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)
756if (task.IsCompletedSuccessfully)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
891return (_sendRequestTask != null) && (_sendRequestTask.IsCompletedSuccessfully);
System.Net.Security (3)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
32Debug.Assert(task.IsCompletedSuccessfully); 68if (task.IsCompletedSuccessfully)
System\Net\Security\SslStream.IO.cs (1)
741if (waiterTask.IsCompletedSuccessfully)
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (3)
2660if (ti.IsCompletedSuccessfully) 2683if (t.IsCompletedSuccessfully) 2724if (t.IsCompletedSuccessfully)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
487return cancellationToken.CanBeCanceled || !lockTask.IsCompletedSuccessfully ?
System.Net.WebSockets.Client (1)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (1)
557if (promise.IsCompletedSuccessfully)
System.Private.CoreLib (19)
src\runtime\src\libraries\Common\src\System\Threading\Tasks\CachedCompletedInt32Task.cs (1)
26Debug.Assert(task.IsCompletedSuccessfully, "Expected that a stored last task completed successfully");
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (3)
590if (semaphoreLockTask.IsCompletedSuccessfully) 641if (semaphoreLockTask.IsCompletedSuccessfully) 1018if (semaphoreLockTask.IsCompletedSuccessfully)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
313if (semaphoreLockTask.IsCompletedSuccessfully // lock has been acquired 614if (semaphoreLockTask.IsCompletedSuccessfully // lock has been acquired
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
559Debug.Assert(asyncWaiter.IsCompletedSuccessfully, "The semaphore wait should always complete successfully."); 566Debug.Assert(t.IsCompletedSuccessfully, "The semaphore wait should always complete successfully.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (1)
458return IsCompletedSuccessfully && typeof(TResult) != typeof(VoidTaskResult) ?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
114if (!task.IsCompletedSuccessfully)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (3)
349IsCompletedSuccessfully ? "" + m_result : SR.TaskT_DebuggerNoResult; 458if (!IsCompletedSuccessfully) ThrowIfExceptional(includeTaskCanceledExceptions: true); 461Debug.Assert(IsCompletedSuccessfully, "Task<T>.Result getter: Expected result to have been set.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6278if (!completedTask.IsCompletedSuccessfully)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
302completedTask.IsCompletedSuccessfully ?
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
340return t.IsCompletedSuccessfully; 750return t.IsCompletedSuccessfully;
System.Private.Xml (1)
System\Xml\AsyncHelper.cs (1)
18return task.IsCompletedSuccessfully;
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (1)
95if (jsTask.IsCompletedSuccessfully)
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
32Debug.Assert(task.IsCompletedSuccessfully); 68if (task.IsCompletedSuccessfully)
System.Threading.Tasks.Dataflow (1)
Blocks\TransformManyBlock.netstandard21.cs (1)
40t.ContinueWith(static t => Debug.Assert(t.IsCompletedSuccessfully), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);