4056 references to ConfigureAwait
aspire (242)
Agents\AspireSkills\AspireSkillsInstaller.cs (6)
89cancellationToken).ConfigureAwait(false); 539await response.Content.CopyToAsync(fileStream, cancellationToken).ConfigureAwait(false); 768cancellationToken).ConfigureAwait(false); 777cancellationToken).ConfigureAwait(false); 785cancellationToken).ConfigureAwait(false); 898await Task.Delay(retryDelay, cancellationToken).ConfigureAwait(false);
Agents\AspireSkills\EmbeddedAspireSkillsBundleProvider.cs (1)
83await archiveStream.CopyToAsync(fileStream, cancellationToken).ConfigureAwait(false);
Agents\ClaudeCode\ClaudeCodeCliRunner.cs (1)
45await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Agents\CopilotCli\CopilotCliRunner.cs (1)
45await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Agents\OpenCode\OpenCodeCliRunner.cs (1)
45await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Agents\Playwright\PlaywrightCliRunner.cs (2)
41await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 110await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Agents\VsCode\VsCodeCliRunner.cs (1)
46await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
277cancellationToken).ConfigureAwait(false);
Backchannel\AppHostCliBackchannel.cs (9)
67await disconnectTask.WaitAsync(cancellationToken).ConfigureAwait(false); 174await WaitForReconnectionAsync(cancellationToken).ConfigureAwait(false); 281await Task.Delay(100, cancellationToken).ConfigureAwait(false); 294await Task.Delay(500, cancellationToken).ConfigureAwait(false); 410await ReconnectInternalAsync().ConfigureAwait(false); 462await ConnectAsync(_socketPath, _autoReconnect, retryCount, _cancellationToken).ConfigureAwait(false); 470await Task.Delay(500, _cancellationToken).ConfigureAwait(false); 520cancellationToken).ConfigureAwait(false); 535cancellationToken).ConfigureAwait(false);
Backchannel\AppHostConnectionHelper.cs (1)
35await auxiliaryBackchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AppHostConnectionResolver.cs (2)
67await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 188await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelMonitor.cs (10)
97WatchConnectionChangesAsync(legacyFileProvider, LegacySocketWatchPattern, cancellationToken)).ConfigureAwait(false); 274await fileWatcherTask.ConfigureAwait(false); 293await Task.WhenAll(disconnectTasks).ConfigureAwait(false); 308await _scanLock.WaitAsync(cancellationToken).ConfigureAwait(false); 332_ = Task.Run(async () => await DisconnectAsync(connection).ConfigureAwait(false), CancellationToken.None); 361await Task.WhenAll(connectTasks).ConfigureAwait(false); 431await Task.Delay(delay, _timeProvider, cancellationToken).ConfigureAwait(false); 517_ = Task.Run(async () => await DisconnectAsync(conn).ConfigureAwait(false)); 555await DisconnectAsync(connection).ConfigureAwait(false); 579await Task.CompletedTask.ConfigureAwait(false);
Backchannel\ExtensionBackchannel.cs (4)
120await connectionSetupTcs.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 163await ConnectCoreAsync().ConfigureAwait(false); 174await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 234await _connectCoreAsyncOverride(cancellationToken).ConfigureAwait(false);
Backchannel\OrphanedAppHostCollector.cs (1)
28await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Backchannel\ProfilingJsonRpcExtensions.cs (1)
54await rpc.InvokeWithCancellationAsync(methodName, arguments, cancellationToken).ConfigureAwait(false);
Backchannel\ResourceSnapshotWatcher.cs (3)
84await WatchChangesAsync(cancellationToken).ConfigureAwait(false); 111await watchTask.ConfigureAwait(false); 133await watchTask.ConfigureAwait(false);
Bundles\BundleService.cs (4)
327await ExtractPayloadAsync(tempDir, cancellationToken).ConfigureAwait(false); 363await MoveDirectoryWithRetryAsync(tempDir, activeVersionDir, cancellationToken).ConfigureAwait(false); 422await Task.Delay(delay, cancellationToken).ConfigureAwait(false); 862await ExtractPayloadAsync(payloadStream, destinationPath, environment, cancellationToken).ConfigureAwait(false);
Caching\AppHostInfoDiskCache.cs (1)
220await File.WriteAllTextAsync(tempPath, payload, cancellationToken).ConfigureAwait(false);
Caching\DiskCache.cs (1)
108await File.WriteAllTextAsync(tempFile, content, cancellationToken).ConfigureAwait(false);
Certificates\CertificateGeneration\CertificateProcessRunner.cs (1)
64await reader.BaseStream.CopyToAsync(Stream.Null, cancellationToken).ConfigureAwait(false);
Commands\AgentMcpCommand.cs (1)
254await _resourceToolRefreshService.SendToolsListChangedNotificationAsync(cancellationToken).ConfigureAwait(false);
Commands\AppHostLauncher.cs (5)
262await StopLaunchedAppHostAsync(launchResult, stopAfterLaunchDelay.Value, cancellationToken).ConfigureAwait(false); 289await Task.Delay(delay, cancellationToken).ConfigureAwait(false); 554await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 657await RequestGracefulShutdownThenForceKillAsync(childProcess, childStartedAt).ConfigureAwait(false); 663await RequestGracefulShutdownThenForceKillAsync(childProcess, childStartedAt).ConfigureAwait(false);
Commands\BaseCommand.cs (2)
92await FlushExtensionInteractionServiceAsync(InteractionService).ConfigureAwait(false); 289await extensionInteractionService.FlushAsync(flushCancellationTokenSource.Token).ConfigureAwait(false);
Commands\DescribeCommand.cs (1)
159await resourceWatcher.WaitForInitialLoadAsync(cancellationToken).ConfigureAwait(false);
Commands\ExportCommand.cs (3)
202await AddConsoleLogsAsync(exportArchive, connection, resourceName, snapshots, hiddenResourceNames, cancellationToken).ConfigureAwait(false); 212await AddStructuredLogsAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false); 219await AddTracesAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false);
Commands\LogsCommand.cs (1)
176await resourceWatcher.WaitForInitialLoadAsync(cancellationToken).ConfigureAwait(false);
Commands\LsCommand.cs (2)
223await refreshTask.ConfigureAwait(false); 238await Task.Delay(statusRefreshInterval, _timeProvider, refreshToken).ConfigureAwait(false);
Commands\PipelineCommandBase.cs (2)
357await backchannel.RequestStopAsync(CancellationToken.None).ConfigureAwait(false); 384await backchannel.RequestStopAsync(cancellationToken).ConfigureAwait(false);
Commands\PsCommand.cs (3)
169await _backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 260await followCancellationTokenSource.CancelAsync().ConfigureAwait(false); 285await followCancellationTokenSource.CancelAsync().ConfigureAwait(false);
Commands\RenderCommand.cs (1)
446await File.WriteAllTextAsync(filePath, "This file is used to smoke test SafeFileLink rendering.", cancellationToken).ConfigureAwait(false);
Commands\ResourceCommand.cs (3)
606await WriteAvailableCommandsAsync(parseResult, resourceName, cancellationToken).ConfigureAwait(false); 675await command._backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 711await command._backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Commands\RunCommand.cs (8)
387await CancelAppHostStartupAsync(runCts, runTask, cancellationToken).ConfigureAwait(false); 433await CancelAppHostStartupAsync(runCts, runTask, cancellationToken).ConfigureAwait(false); 603await pendingLogCapture.ConfigureAwait(false); 805await startupCts.CancelAsync().ConfigureAwait(false); 926await backchannel.NotifyAppHostReadyAsync(cancellationToken).ConfigureAwait(false); 992await delayTask.ConfigureAwait(false); 998await backchannel.RequestStopAsync(cancellationToken).ConfigureAwait(false); 1213await enumerationCancellationSource.CancelAsync().ConfigureAwait(false);
Commands\StopCommand.cs (1)
346await WarnIfPersistentResourceCleanupMayBeUnsupportedAsync(appHostFile, cancellationToken).ConfigureAwait(false);
ConsoleCancellationManager.cs (1)
331await Task.Delay(Timeout.InfiniteTimeSpan, _gracefulToken).ConfigureAwait(false);
Diagnostics\FileLoggerProvider.cs (1)
117await _writer.WriteLineAsync(message).ConfigureAwait(false);
Documentation\ApiDocs\ApiDocsIndexService.cs (10)
356await _indexLock.WaitAsync(cancellationToken).ConfigureAwait(false); 403await _cache.SetIndexAsync(itemArray, cancellationToken).ConfigureAwait(false); 404await _cache.SetIndexSourceFingerprintAsync(currentFingerprint, cancellationToken).ConfigureAwait(false); 576await _memberIndexLock.WaitAsync(cancellationToken).ConfigureAwait(false); 655}).ConfigureAwait(false); 662await _memberIndexLock.WaitAsync(cancellationToken).ConfigureAwait(false); 685await PersistIndexedMemberItemsAsync(cancellationToken).ConfigureAwait(false); 842await _cache.SetMemberIndexAsync(cachedMemberItems, cancellationToken).ConfigureAwait(false); 843await _cache.SetIndexedMemberContainerIdsAsync([.. _indexedMemberContainerIds], cancellationToken).ConfigureAwait(false); 844await _cache.SetMemberIndexSourceFingerprintAsync(GetMemberIndexFingerprint(currentFingerprint), cancellationToken).ConfigureAwait(false);
Documentation\CachedHttpDocumentFetcher.cs (5)
59await cache.SetETagAsync(storageKey, null, cancellationToken).ConfigureAwait(false); 68await cache.SetETagAsync(storageKey, retryETag, cancellationToken).ConfigureAwait(false); 71await cache.SetAsync(storageKey, retryContent, cancellationToken).ConfigureAwait(false); 82await cache.SetETagAsync(storageKey, newETag, cancellationToken).ConfigureAwait(false); 86await cache.SetAsync(storageKey, content, cancellationToken).ConfigureAwait(false);
Documentation\Docs\DocsCache.cs (19)
61await MigrateLegacyIndexFingerprintAsync(cancellationToken).ConfigureAwait(false); 62await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 77await _contentCache.SetJsonAsync(_indexCacheKey, legacyDocuments, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false); 78await MigrateLegacyIndexFingerprintAsync(cancellationToken).ConfigureAwait(false); 79await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 85await _contentCache.SetJsonAsync(_indexCacheKey, documents, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false); 86await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 94await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false); 109await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false); 110await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false); 116await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, fingerprint, cancellationToken).ConfigureAwait(false); 117await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false); 138await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false); 144await ClearLegacySourceCacheAsync(cancellationToken).ConfigureAwait(false); 145await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false); 155await _contentCache.InvalidateAsync(_llmsTxtUrl, cancellationToken).ConfigureAwait(false); 156await _contentCache.SetETagAsync(_llmsTxtUrl, null, cancellationToken).ConfigureAwait(false); 166await _contentCache.InvalidateJsonAsync(_legacyIndexCacheKey, cancellationToken).ConfigureAwait(false); 167await _contentCache.InvalidateAsync(_legacyIndexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
Documentation\Docs\DocsFetcher.cs (7)
36await MigrateLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 51await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 60await _cache.SetAsync(_cacheKey, legacyContent, cancellationToken).ConfigureAwait(false); 65await _cache.SetETagAsync(_cacheKey, legacyETag, cancellationToken).ConfigureAwait(false); 70await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false); 76await _cache.InvalidateAsync(_llmsTxtUrl, cancellationToken).ConfigureAwait(false); 77await _cache.SetETagAsync(_llmsTxtUrl, null, cancellationToken).ConfigureAwait(false);
Documentation\Docs\DocsIndexService.cs (3)
158await _indexLock.WaitAsync(cancellationToken).ConfigureAwait(false); 209await _docsCache.SetIndexAsync([.. documents], cancellationToken).ConfigureAwait(false); 210await _docsCache.SetIndexSourceFingerprintAsync(currentFingerprint, cancellationToken).ConfigureAwait(false);
Documentation\FileBackedDocumentContentCache.cs (4)
64await WriteTextFileAsync(GetTextFilePath(key), content, cancellationToken).ConfigureAwait(false); 118await WriteTextFileAsync(GetETagFilePath(key), etag, cancellationToken).ConfigureAwait(false); 240await JsonSerializer.SerializeAsync(stream, value, jsonTypeInfo, cancellationToken).ConfigureAwait(false); 297await File.WriteAllTextAsync(tempPath, content, cancellationToken).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (6)
275await StartBackchannelAsync(null, socketPath!, backchannelCompletionSource, backchannelParentContext, cancellationToken).ConfigureAwait(false); 282await backchannel.WaitForDisconnectAsync(cancellationToken).ConfigureAwait(false); 520await backchannel.ConnectAsync(socketPath, connectionAttempts, cancellationToken).ConfigureAwait(false); 562await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 878await Task.Delay(TimeSpan.FromSeconds(attempt + 1), cancellationToken).ConfigureAwait(false); 1611await _diskCache.SetAsync(rawKey, stdout, cancellationToken).ConfigureAwait(false);
DotNet\ProcessExecution.cs (11)
208await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 214await ShutdownOnCancelAsync(process.Process).ConfigureAwait(false); 222await DrainOutputAsync(process, CancellationToken.None).ConfigureAwait(false); 235await DrainOutputAsync(process, cancellationToken).ConfigureAwait(false); 311await process.WaitForExitAsync(gracefulToken).ConfigureAwait(false); 348await process.WaitForExitAsync(killDrain.Token).ConfigureAwait(false); 494await _startCompletion.Task.ConfigureAwait(false); 500await DisposeStartedProcessAsync().ConfigureAwait(false); 542await DrainOutputAsync(process, CancellationToken.None).ConfigureAwait(false); 605await drained.ConfigureAwait(false); 631await Task.Delay(s_drainPollInterval, cancellationToken).ConfigureAwait(false);
Git\GitRepository.cs (2)
49await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 135await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Interaction\ExtensionInteractionService.cs (2)
78await completionSource.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 573var result = _extensionTaskChannel.Writer.TryWrite(async () => await Backchannel.WriteAppHostLogEntryAsync(entry, _cancellationToken).ConfigureAwait(false));
Mcp\McpResourceToolRefreshService.cs (1)
70await server.SendNotificationAsync(NotificationMethods.ToolListChangedNotification, cancellationToken).ConfigureAwait(false);
Mcp\Tools\DocsToolHelper.cs (2)
41}, cancellationToken).ConfigureAwait(false); 58}, cancellationToken).ConfigureAwait(false);
Mcp\Tools\ListAppHostsTool.cs (1)
41await auxiliaryBackchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Mcp\Tools\ListResourcesTool.cs (1)
76await Task.WhenAll(dashboardUrlsTask, snapshotsTask).ConfigureAwait(false);
Mcp\Tools\RefreshToolsTool.cs (1)
23await refreshService.SendToolsListChangedNotificationAsync(cancellationToken).ConfigureAwait(false);
Npm\NpmRunner.cs (1)
312await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
OpenCode\OpenCodeCliRunner.cs (1)
38await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Processes\IsolatedProcess.cs (2)
356await _startCompletion.Task.ConfigureAwait(false); 483await pumpCompletion.ConfigureAwait(false);
Processes\IsolatedProcess.Unix.cs (3)
60await dcpProcess.WaitForExitAsync(CancellationToken.None).ConfigureAwait(false); 85await dcpProcess.WaitForExitAsync(CancellationToken.None).ConfigureAwait(false); 119await dcpProcess.WaitForExitAsync(CancellationToken.None).ConfigureAwait(false);
Processes\ProcessTreeGracefulShutdownService.cs (1)
340await Task.Delay(s_processTerminationPollInterval, timeProvider, cancellationToken).ConfigureAwait(false);
Processes\WindowsProcessInterop.cs (1)
725await tcs.Task.ConfigureAwait(false);
Profiling\ProfileCaptureService.cs (3)
136await session.WaitForDashboardAsync(dashboardStartTimeout, pollInterval, cancellationToken).ConfigureAwait(false); 310await Task.Delay(pollInterval, _timeProvider, linkedCts.Token).ConfigureAwait(false); 436await Task.Delay(_profileDataPollInterval, _timeProvider, linkedCts.Token).ConfigureAwait(false);
Program.cs (4)
1077await app.StartAsync().ConfigureAwait(false); 1231await telemetryManager.ForceFlushReportedAsync().ConfigureAwait(false); 1245await telemetryManager.ForceFlushProfilingAsync().ConfigureAwait(false); 1276await app.StopAsync().ConfigureAwait(false);
Projects\AppHostInfoResolver.cs (1)
182}, cancellationToken).ConfigureAwait(false);
Projects\AppHostRpcClient.cs (4)
200await pipeClient.ConnectAsync(cancellationToken).ConfigureAwait(false); 205await Task.Delay(100, cancellationToken).ConfigureAwait(false); 209await Task.Delay(100, cancellationToken).ConfigureAwait(false); 237await Task.Delay(100, cancellationToken).ConfigureAwait(false);
Projects\AppHostServerClosureSnapshots.cs (2)
441await WriteManifestFileAsync(Path.Combine(stagingPath, LayoutManifestFileName), manifest, cancellationToken).ConfigureAwait(false); 528await File.WriteAllLinesAsync(path, manifest.GetProjectLayoutManifestLines(), cancellationToken).ConfigureAwait(false);
Projects\AppHostServerSession.cs (3)
166await _startGate.WaitAsync().ConfigureAwait(false); 345await _startGate.WaitAsync().ConfigureAwait(false); 382await runTask.ConfigureAwait(false);
Projects\ExtensionGuestLauncher.cs (1)
58await afterLaunchAsync().ConfigureAwait(false);
Projects\GeneratedFileWriter.cs (1)
46await File.WriteAllTextAsync(path, content, cancellationToken).ConfigureAwait(false);
Projects\GuestAppHostProject.cs (4)
1321await _backchannel.ConnectAsync(socketPath, autoReconnect: enableHotReload, retryCount: connectionAttempts, cancellationToken).ConfigureAwait(false); 1377await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 1381await Task.Delay(50, cancellationToken).ConfigureAwait(false); 1957await File.WriteAllLinesAsync(manifestPath, current.Order(StringComparer.Ordinal), cancellationToken).ConfigureAwait(false);
Projects\JavaAppHostToolchainResolver.cs (1)
417await File.WriteAllTextAsync(temporaryPath, GradleInitScript, cancellationToken).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (7)
203cancellationToken).ConfigureAwait(false); 212await WriteAppSettingsAsync(_workingDirectory, closureManifest.AppSettingsContent, cancellationToken).ConfigureAwait(false); 224await WriteAppSettingsAsync(_workingDirectory, appSettingsContent, cancellationToken).ConfigureAwait(false); 649await File.WriteAllTextAsync(Path.Combine(objDir, RestoreStampFileName), fingerprint, cancellationToken).ConfigureAwait(false); 815await WriteRestoreStampAsync(restoreDir, restoreFingerprint, _logger, cancellationToken).ConfigureAwait(false); 859cancellationToken).ConfigureAwait(false); 1712cancellationToken).ConfigureAwait(false);
Projects\ProcessGuestLauncher.cs (1)
158await afterLaunchAsync().ConfigureAwait(false);
Projects\ProjectLocator.cs (3)
209await discoveryTask.ConfigureAwait(false); 220await discoveryTask.ConfigureAwait(false); 453await AddSettingsAppHostCandidateAsync().ConfigureAwait(false);
Projects\RunningInstanceManager.cs (1)
152await Task.Delay(ProcessTerminationPollIntervalMs, cancellationToken).ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
43await Task.Delay(s, cancellationToken).ConfigureAwait(false);
src\Shared\ContainerRuntimeDetector.cs (3)
171await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false); 273await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false); 352await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
src\Shared\FileLock.cs (1)
139await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
src\Shared\ParentProcessLivenessMonitor.cs (2)
92await onParentExited(stopToken).ConfigureAwait(false); 124await _monitorTask.ConfigureAwait(false);
Telemetry\AspireCliTelemetry.cs (1)
262await Task.WhenAll(new Task[] { macAddressHashTask, deviceIdTask }).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (8)
105await TryWriteCacheAsync(result, cancellationToken).ConfigureAwait(false); 241await stageCancellation.CancelAsync().ConfigureAwait(false); 242await DrainCancelledProbesAsync(probeTasks).ConfigureAwait(false); 352await File.WriteAllTextAsync(tempPath, json, cancellationToken).ConfigureAwait(false); 633await linkedSource.CancelAsync().ConfigureAwait(false); 634await DrainGitHubCandidateTasksAsync(candidateTasks).ConfigureAwait(false); 647await linkedSource.CancelAsync().ConfigureAwait(false); 648await DrainGitHubCandidateTasksAsync(candidateTasks).ConfigureAwait(false);
Tui\TerminalViewerApp.cs (5)
174await e.Connection.RequestPrimaryAsync(cols, rows, ct).ConfigureAwait(false); 262await _embeddedCts.CancelAsync().ConfigureAwait(false); 456.Action(async _ => await TakeControlAsync(connection, availW, availH).ConfigureAwait(false), 549await connection.RequestPrimaryAsync(availW, availH, CancellationToken.None).ConfigureAwait(false); 590await connection.RequestPrimaryAsync(width, height, CancellationToken.None).ConfigureAwait(false);
Utils\ArchiveHelper.cs (2)
28await ExtractTarGzSafeAsync(archivePath, destinationPath, environment, cancellationToken).ConfigureAwait(false); 107await entry.ExtractToFileAsync(fullPath, overwrite: true, cancellationToken).ConfigureAwait(false);
Utils\ConsoleActivityLogger.cs (2)
147await Task.Delay(120).ConfigureAwait(false); 217await _spinnerTask.ConfigureAwait(false);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (4)
75await session.StopDcpAsync(client, kubeconfig, timeoutCts.Token).ConfigureAwait(false); 280await session.WaitForKubeconfigFileAsync(cancellationToken).ConfigureAwait(false); 318await WaitForKubeconfigFileAsync(cancellationToken).ConfigureAwait(false); 396await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false);
Utils\EnvironmentChecker\DcpKubeconfig.cs (1)
38await delayAsync(s_readRetryDelay, cancellationToken).ConfigureAwait(false);
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
41await AddLinuxOpenSslCertificateCacheWarningsAsync(results, trustResult.Certificates, environment, cancellationToken).ConfigureAwait(false);
Utils\ProcessCaptureRunner.cs (4)
84await SwallowExitWaitAsync(process, s_postKillExitWaitBound, logger).ConfigureAwait(false); 97await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false); 114await SwallowExitWaitAsync(process, s_postKillExitWaitBound, logger).ConfigureAwait(false); 194await process.WaitForExitAsync(cts.Token).ConfigureAwait(false);
aspire-managed (6)
NuGet\Commands\ManifestCommand.cs (1)
100await IntegrationPackageProbeManifest.WriteAsync(outputPath, manifest, cancellationToken).ConfigureAwait(false);
Program.cs (1)
64await Aspire.Hosting.RemoteHost.RemoteHostServer.RunAsync(args).ConfigureAwait(false);
src\Shared\ParentProcessLivenessMonitor.cs (2)
92await onParentExited(stopToken).ConfigureAwait(false); 124await _monitorTask.ConfigureAwait(false);
src\Shared\ParentProcessWatchdog.cs (2)
120await forceExitTask.ConfigureAwait(false); 128await Task.Delay(forceExitGracePeriod, stopToken).ConfigureAwait(false);
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
159await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Aspire.Cli.Tests (19)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
194await Task.CompletedTask.WaitAsync(cancellationToken).ConfigureAwait(false);
Commands\AppHostLauncherTests.cs (2)
1500await exitMonitorProcess.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 1504await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Commands\DashboardRunCommandTests.cs (2)
442await Task.Delay(Timeout.InfiniteTimeSpan, cancellationToken).ConfigureAwait(false); 448await shutdownTcs.Task.ConfigureAwait(false);
Commands\LogsCommandTests.cs (1)
1645await tcs.Task.ConfigureAwait(false);
DotNet\ProcessExecutionDetachedTests.cs (1)
628await _allowAcquire.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
Mcp\MockPackagingService.cs (1)
57await ScanAsync(cancellationToken).ConfigureAwait(false);
NuGet\BundleNuGetServiceTests.cs (2)
334await allowFirstRestoreToComplete.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 346cancellationToken).ConfigureAwait(false);
Projects\GuestRuntimeTests.cs (1)
1484await afterLaunchAsync().ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
TestServices\TestAppHostCliBackchannel.cs (2)
115await ConnectAsyncCallback.Invoke(socketPath, cancellationToken).ConfigureAwait(false); 121await DisconnectCompletionSource.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
43await ScanAsync(cancellationToken).ConfigureAwait(false); 48await ScanAsync(cancellationToken).ConfigureAwait(false);
Utils\GitTestHelper.cs (2)
17await process.WaitForExitAsync().ConfigureAwait(false); 41await process.WaitForExitAsync().ConfigureAwait(false);
Aspire.Dashboard (144)
Authentication\Connection\ConnectionTypeMiddleware.cs (1)
27await _next(context).ConfigureAwait(false);
Authentication\FrontendCompositeAuthenticationHandler.cs (1)
40await Context.ChallengeAsync(scheme).ConfigureAwait(false);
Components\Controls\Chart\ChartBase.cs (2)
111await UpdateChartAsync(tickUpdate: false, inProgressDataTime).ConfigureAwait(false); 120await UpdateChartAsync(tickUpdate: true, inProgressDataTime).ConfigureAwait(false);
Components\Interactions\InteractionsProvider.cs (13)
57await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 112await InteractionsDisplayAsync().ConfigureAwait(false); 124await WatchInteractionsAsync().ConfigureAwait(false); 140await waitForInteractionAvailableTask.WaitAsync(_cts.Token).ConfigureAwait(false); 144await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 191await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 245await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 266await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 304await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 340await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 381await DashboardClient.WhenConnected.WaitAsync(_cts.Token).ConfigureAwait(false); 386await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 513await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false);
Components\Pages\IPageWithSessionAndUrlState.cs (1)
82await page.SessionStorage.SetAsync(page.SessionStorageKey, serializableViewModel).ConfigureAwait(false);
DashboardEndpointsBuilder.cs (6)
40CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false); 158await StreamNdjsonAsync(httpContext, service.FollowSpansAsync(resource, traceId, hasError, search, cancellationToken), cancellationToken).ConfigureAwait(false); 190await StreamNdjsonAsync(httpContext, service.FollowLogsAsync(resource, traceId, severity, search, cancellationToken), cancellationToken).ConfigureAwait(false); 263await httpContext.Response.WriteAsync(json, cancellationToken).ConfigureAwait(false); 264await httpContext.Response.WriteAsync("\n", cancellationToken).ConfigureAwait(false); 265await httpContext.Response.Body.FlushAsync(cancellationToken).ConfigureAwait(false);
DashboardWebApplication.cs (5)
463await telemetryService.InitializeAsync().ConfigureAwait(false); 486await next(context).ConfigureAwait(false); 556await context.Response.WriteAsync("Origin not allowed.").ConfigureAwait(false); 560await next(context).ConfigureAwait(false); 1038await ((IHost)_app).RunAsync(cancellationToken).ConfigureAwait(false);
Extensions\ComponentExtensions.cs (3)
15await dataGrid.RefreshDataAsync().ConfigureAwait(false); 23await logViewer.RefreshDataAsync().ConfigureAwait(false); 32await call(row.Item!).ConfigureAwait(false);
Extensions\JSInteropExtensions.cs (1)
23await js.DownloadFileAsync(fileName, stream).ConfigureAwait(false);
Model\CommonMenuItems.cs (2)
45await sessionStorage.SetAsync(BrowserStorageKeys.ResourcesShowHiddenResources, showHiddenResources).ConfigureAwait(true); 46await refreshFunction.InvokeAsync(showHiddenResources).ConfigureAwait(true);
Model\ConsoleLogsManager.cs (2)
86await _sessionStorage.SetAsync(BrowserStorageKeys.ConsoleLogFilters, filters).ConfigureAwait(false); 101await subscription.ExecuteAsync().ConfigureAwait(false);
Model\DashboardCommandExecutor.cs (4)
55await ExecuteAsyncCore(resource, command, getResourceName).ConfigureAwait(false); 79await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false); 208await OpenViewResponseDialogAsync(dialogService, command, response).ConfigureAwait(false); 256await OpenViewResponseDialogAsync(dialogService, command, response).ConfigureAwait(false);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
129await CreateMessagesAsync(viewModel, telemetryRepository, cancellationToken).ConfigureAwait(false); 159await ParseEvaluationsAsync(viewModel, telemetryRepository, cancellationToken).ConfigureAwait(false);
Model\InstrumentViewModel.cs (1)
41await subscription().ConfigureAwait(false);
Model\Interaction\InteractionsInputsDialogViewModel.cs (1)
30await OnInteractionUpdated().ConfigureAwait(false);
Model\ResourceOutgoingPeerResolver.cs (4)
70await RaisePeerChangesAsync().ConfigureAwait(false); 102await RaisePeerChangesAsync().ConfigureAwait(false); 340await subscription.ExecuteAsync().ConfigureAwait(false); 360await TaskHelpers.WaitIgnoreCancelAsync(_watchTask).ConfigureAwait(false);
Model\TelemetryExportService.cs (4)
98await AddConsoleLogsAsync(exportArchive, consoleLogResources, cancellationToken).ConfigureAwait(false); 104await AddStructuredLogsAsync(exportArchive, structuredLogResources, cancellationToken).ConfigureAwait(false); 110await AddTracesAsync(exportArchive, traceResources, cancellationToken).ConfigureAwait(false); 116await AddMetricsAsync(exportArchive, metricsResources, cancellationToken).ConfigureAwait(false);
Model\TelemetryImportService.cs (11)
67await ImportCoreAsync(fileName, stream, allowZipFile: true, cancellationToken).ConfigureAwait(false); 85await stream.CopyToAsync(memoryStream, cancellationToken).ConfigureAwait(false); 88await ImportZipAsync(memoryStream, cancellationToken).ConfigureAwait(false); 91await ImportJsonAsync(fileName, stream, cancellationToken).ConfigureAwait(false); 110await ImportCoreAsync(entry.Name, entryStream, allowZipFile: false, cancellationToken).ConfigureAwait(false); 147await ImportLogsAsync(telemetryData.ResourceLogs).ConfigureAwait(false); 154await ImportTracesAsync(telemetryData.ResourceSpans).ConfigureAwait(false); 161await ImportMetricsAsync(telemetryData.ResourceMetrics).ConfigureAwait(false); 178await _telemetryRepositoryWriter.AddLogsAsync(addContext, protobufRequest.ResourceLogs).ConfigureAwait(false); 189await _telemetryRepositoryWriter.AddTracesAsync(addContext, protobufRequest.ResourceSpans).ConfigureAwait(false); 200await _telemetryRepositoryWriter.AddMetricsAsync(addContext, protobufRequest.ResourceMetrics).ConfigureAwait(false);
Model\ThemeManager.cs (2)
40await JSInteropHelpers.SafeDisposeAsync(_jsModule).ConfigureAwait(false); 151await subscription.ExecuteAsync().ConfigureAwait(false);
Model\TraceLinkHelpers.cs (4)
75await reference.CloseAsync(DialogResult.Ok<bool>(true)).ConfigureAwait(false); 76}).ConfigureAwait(false); 80await Task.Delay(TimeSpan.FromSeconds(0.5), cts.Token).ConfigureAwait(false); 88await TaskHelpers.WaitIgnoreCancelAsync(waitForTraceTask).ConfigureAwait(false);
Model\ValidateTokenMiddleware.cs (2)
66await _next(context).ConfigureAwait(false); 104new AuthenticationProperties { IsPersistent = true }).ConfigureAwait(false);
Otlp\Http\OtlpHttpEndpointsBuilder.cs (5)
117await httpContext.Response.WriteAsync(json, Encoding.UTF8).ConfigureAwait(false); 180await WriteUnsupportedContentTypeResponse(context, logger).ConfigureAwait(false); 229await ms.CopyToAsync(httpContext.Response.Body).ConfigureAwait(false); 234await httpContext.Response.WriteAsync(jsonResponse, Encoding.UTF8).ConfigureAwait(false); 237await WriteUnsupportedContentTypeResponse(httpContext, logger).ConfigureAwait(false);
Otlp\OtlpLogsService.cs (1)
26await _telemetryRepositoryWriter.AddLogsAsync(addContext, request.ResourceLogs).ConfigureAwait(false);
Otlp\OtlpMetricsService.cs (1)
26await _telemetryRepositoryWriter.AddMetricsAsync(addContext, request.ResourceMetrics).ConfigureAwait(false);
Otlp\OtlpTraceService.cs (1)
26await _telemetryRepositoryWriter.AddTracesAsync(addContext, request.ResourceSpans).ConfigureAwait(false);
Otlp\Storage\SqliteTelemetryRepository.cs (8)
81await RecalculateUninstrumentedPeersAsync().ConfigureAwait(false); 122await AddMetricsToDatabaseAsync(context, resourceMetrics).ConfigureAwait(false); 238await ClearSelectedLogsFromDatabaseAsync(selectedResources).ConfigureAwait(false); 239await ClearSelectedTracesFromDatabaseAsync(selectedResources).ConfigureAwait(false); 240await ClearSelectedMetricsFromDatabaseAsync(selectedResources).ConfigureAwait(false); 251await ClearTracesFromDatabaseAsync(resourceKey).ConfigureAwait(false); 259await ClearStructuredLogsFromDatabaseAsync(resourceKey).ConfigureAwait(false); 268await ClearMetricsFromDatabaseAsync(resourceKey).ConfigureAwait(false);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
741await DeleteTelemetryResourceFromDatabaseAsync(key).ConfigureAwait(false); 745await ClearStructuredLogsFromDatabaseAsync(key).ConfigureAwait(false);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
763await ClearMetricsFromDatabaseAsync(key).ConfigureAwait(false);
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
1007await ClearTracesFromDatabaseAsync(key).ConfigureAwait(false);
ServiceClient\DashboardClient.cs (19)
354await WatchWithRecoveryAsync(WatchResourcesAsync, "resources", cancellationToken).ConfigureAwait(false); 359await WatchWithRecoveryAsync(WatchInteractionsAsync, "interactions", cancellationToken).ConfigureAwait(false); 361}, cancellationToken)).ConfigureAwait(false); 402await Task.Delay(delay, delayCts.Token).ConfigureAwait(false); 493await Task.Delay(delay, delayCts.Token).ConfigureAwait(false); 665await _resourceRepositoryWriter.ReplaceResourcesAsync(response.InitialData.Resources).ConfigureAwait(false); 669await _resourceRepositoryWriter.ApplyChangesAsync(response.Changes.Value).ConfigureAwait(false); 714await call.RequestStream.WriteAsync(update).ConfigureAwait(false); 850await _initialDataReceivedTcs.Task.WaitAsync(cts.Token).ConfigureAwait(false); 940await MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false); 961await _resourceRepositoryWriter.AddConsoleLogsAsync(resourceName, response.LogLines).ConfigureAwait(false); 977await readTask.ConfigureAwait(false); 984await MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false); 995await _resourceRepositoryWriter.AddConsoleLogsAsync(resourceName, response.LogLines).ConfigureAwait(false); 1014await _resourceRepositoryWriter.MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false); 1137await call.RequestStream.WriteAsync(chunk, combinedTokens.Token).ConfigureAwait(false); 1144await call.RequestStream.WriteAsync(new UploadFileChunk { FileName = fileName, InteractionId = interactionId, InputName = inputName }, combinedTokens.Token).ConfigureAwait(false); 1147await call.RequestStream.CompleteAsync().ConfigureAwait(false); 1165await TaskHelpers.WaitIgnoreCancelAsync(_connection, _logger, "Unexpected error from connection task.").ConfigureAwait(false);
ServiceClient\DashboardDataSourceInitializer.cs (1)
15await dataSourcePool.InitializeAsync(cancellationToken).ConfigureAwait(false);
ServiceClient\DashboardDataSourcePool.cs (1)
141await Current.Database.InitializeSchemaAsync(cancellationToken).ConfigureAwait(false);
ServiceClient\SelectedDashboardClient.cs (1)
83await Task.CompletedTask.ConfigureAwait(false);
ServiceClient\TracingSqliteConnection.cs (1)
206await execute().ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
43await Task.Delay(s, cancellationToken).ConfigureAwait(false);
src\Shared\FileLock.cs (1)
139await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
src\Shared\TaskHelpers.cs (1)
29await task.ConfigureAwait(false);
Telemetry\DashboardTelemetrySender.cs (2)
58await requestFunc(Client, GetResponseProperty).ConfigureAwait(false); 177await task.ConfigureAwait(false);
Telemetry\DashboardTelemetryService.cs (1)
60await _lock.WaitAsync().ConfigureAwait(false);
Terminal\TerminalWebSocketProxy.cs (14)
64await HandleAsync(context, resolver, logger, connectionId).ConfigureAwait(false); 100await context.Response.WriteAsync("Expected a WebSocket upgrade request.").ConfigureAwait(false); 126await context.Response.WriteAsync("Origin not allowed.").ConfigureAwait(false); 136await context.Response.WriteAsync("Missing 'resource' query parameter.").ConfigureAwait(false); 146await context.Response.WriteAsync("Invalid 'replica' query parameter.").ConfigureAwait(false); 153await context.Response.WriteAsync("'replica' must be non-negative.").ConfigureAwait(false); 170await context.Response.WriteAsync("Terminal is unavailable.").ConfigureAwait(false); 177await context.Response.WriteAsync("Terminal is not available for the requested resource and replica.").ConfigureAwait(false); 226await BridgeAsync(ws, upstream, logger, connectionId, context.RequestAborted).ConfigureAwait(false); 243CancellationToken.None).ConfigureAwait(false); 303await upstream.FlushAsync(token).ConfigureAwait(false); 400token).ConfigureAwait(false); 440try { await linkedCts.CancelAsync().ConfigureAwait(false); } catch { /* swallow */ } 441try { await Task.WhenAll(inbound, outbound).ConfigureAwait(false); } catch { /* swallow */ }
Utils\AsyncLock.cs (1)
30await _semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
Utils\CallbackThrottler.cs (2)
56await Task.Delay(s, cancellationToken).ConfigureAwait(false); 118await _callback().ConfigureAwait(false);
Utils\CancellationSeries.cs (2)
40await Next(nextCts).ConfigureAwait(false); 64await priorCts.CancelAsync().ConfigureAwait(false);
Utils\FilterHelpers.cs (3)
61await afterChangeAsync().ConfigureAwait(true); 78await afterChangeAsync().ConfigureAwait(true); 90await afterChangeAsync().ConfigureAwait(true);
Utils\GlobalizationHelpers.cs (1)
160await middleware.Invoke(tempHttpContext).ConfigureAwait(false);
Aspire.Dashboard.Components.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Dashboard.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.EndToEnd.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (4)
369await WaitForDashboardToBeAvailableAsync(dashboardUrlToUse, _testOutput, cts.Token).ConfigureAwait(false); 429await AppHostProcess.WaitForExitAsync(token).ConfigureAwait(false); 443await DumpDockerInfoAsync(new TestOutputWrapper(null)).ConfigureAwait(false); 444await StopAppHostAsync().ConfigureAwait(false);
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
159await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Aspire.Hosting (441)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
115await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
84await Callback(context).ConfigureAwait(false);
ApplicationModel\CommandsConfigurationExtensions.cs (17)
32await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 65await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 104await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 105await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 237await Task.WhenAll(replicasToStop.Select(name => orchestrator.StopResourceAsync(name, context.CancellationToken))).ConfigureAwait(false); 246).ConfigureAwait(false); 258await StopLogForwardingAsync(logCts, logForwardTask).ConfigureAwait(false); 269await orchestrator.StartResourceAsync(rebuilderInstanceName, context.CancellationToken).ConfigureAwait(false); 296}).ConfigureAwait(false); 329}).ConfigureAwait(false); 331await orchestrator.StartResourceAsync(name, context.CancellationToken).ConfigureAwait(false); 347}).ConfigureAwait(false); 362}).ConfigureAwait(false); 374}).ConfigureAwait(false); 381await StopLogForwardingAsync(logCts, logForwardTask).ConfigureAwait(false); 408await logCts.CancelAsync().ConfigureAwait(false); 412await logForwardTask.ConfigureAwait(false);
ApplicationModel\Docker\DockerfileBuilder.cs (5)
115await arg.WriteStatementAsync(writer, cancellationToken).ConfigureAwait(false); 119await writer.WriteLineAsync().ConfigureAwait(false); 124await stage.WriteStatementAsync(writer, cancellationToken).ConfigureAwait(false); 129await writer.WriteLineAsync().ConfigureAwait(false); 133await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\Docker\DockerfileStage.cs (1)
285await statement.WriteStatementAsync(writer, cancellationToken).ConfigureAwait(false);
ApplicationModel\Docker\DockerfileStatements.cs (16)
31await writer.WriteLineAsync(statement).ConfigureAwait(false); 49await writer.WriteLineAsync($"WORKDIR {_path}").ConfigureAwait(false); 67await writer.WriteLineAsync($"RUN {_command}").ConfigureAwait(false); 87await writer.WriteLineAsync($"COPY {_source} {_destination}").ConfigureAwait(false); 109await writer.WriteLineAsync($"COPY --from={_stage} {_source} {_destination}").ConfigureAwait(false); 129await writer.WriteLineAsync($"ENV {_name}={_value}").ConfigureAwait(false); 147await writer.WriteLineAsync($"EXPOSE {_port}").ConfigureAwait(false); 170await writer.WriteLineAsync($"CMD {commandJson}").ConfigureAwait(false); 188await writer.WriteLineAsync($"USER {_user}").ConfigureAwait(false); 218await writer.WriteLineAsync(statement).ConfigureAwait(false); 241await writer.WriteLineAsync($"ENTRYPOINT {commandJson}").ConfigureAwait(false); 262await writer.WriteLineAsync($"RUN {mountOptions} \\\n {_command}").ConfigureAwait(false); 273await writer.WriteLineAsync().ConfigureAwait(false); 295await writer.WriteLineAsync($"COPY --chown={_chown} {_source} {_destination}").ConfigureAwait(false); 319await writer.WriteLineAsync($"COPY --from={_stage} --chown={_chown} {_source} {_destination}").ConfigureAwait(false); 342await writer.WriteLineAsync($"# {line}").ConfigureAwait(false);
ApplicationModel\DockerfileBuildAnnotation.cs (5)
102await _materializationLock.WaitAsync(cancellationToken).ConfigureAwait(false); 112await File.WriteAllTextAsync(DockerfilePath, dockerfileContent, cancellationToken).ConfigureAwait(false); 143await MaterializeDockerfileAsync(context, cancellationToken).ConfigureAwait(false); 161await EmitBuildContextIgnoreAsync(dockerfilePath ?? DockerfilePath, cancellationToken).ConfigureAwait(false); 186await File.WriteAllTextAsync(perDockerfileIgnore, content, cancellationToken).ConfigureAwait(false);
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
117await Callback(context).ConfigureAwait(false);
ApplicationModel\ExecutionConfigurationGathererContext.cs (2)
53await ResolveArgumentsAsync(launchToolArgumentsData.Arguments, areLaunchToolArguments: true).ConfigureAwait(false); 56await ResolveArgumentsAsync(Arguments, areLaunchToolArguments: false).ConfigureAwait(false);
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
82await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\LaunchToolArgsCallbackAnnotation.cs (1)
121await Callback(context).ConfigureAwait(false);
ApplicationModel\ProjectResource.cs (5)
115await containerImageBuilder.BuildImageAsync(this, ctx.CancellationToken).ConfigureAwait(false); 134await containerRuntime.TagImageAsync(originalImageName, tempImageName, ctx.CancellationToken).ConfigureAwait(false); 163await dockerfileBuilder.WriteAsync(writer, ctx.CancellationToken).ConfigureAwait(false); 189ctx.CancellationToken).ConfigureAwait(false); 220await containerRuntime.RemoveImageAsync(tempImageName, ctx.CancellationToken).ConfigureAwait(false);
ApplicationModel\RequiredCommandValidator.cs (1)
65await state.Gate.WaitAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceCommandService.cs (2)
653await validateArguments(context).ConfigureAwait(false); 672}).ConfigureAwait(false);
ApplicationModel\ResourceExtensions.cs (10)
282await callback.Callback(context).ConfigureAwait(false); 334await annotation.Callback(context).ConfigureAwait(false); 429await callback.Callback(context).ConfigureAwait(false); 528await annotation.Callback(context).ConfigureAwait(false); 629await callback.Callback(containerRunArgsContext).ConfigureAwait(false); 1340await callback.Callback(context).ConfigureAwait(false); 1561await GatherDirectDependenciesAsync(resource, dependencies, newDependencies, executionContext, options, cancellationToken).ConfigureAwait(false); 1577await GatherDirectDependenciesAsync(dep, dependencies, newDependencies, executionContext, options, cancellationToken).ConfigureAwait(false); 1676await ann.Callback(context).ConfigureAwait(false); 1717await ann.Callback(context).ConfigureAwait(false);
ApplicationModel\ResourceLoggerService.cs (2)
330await Task.WhenAll(readTasks).ConfigureAwait(false); 343await completionTask.ConfigureAwait(false);
ApplicationModel\ResourceNotificationService.cs (18)
173await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 176}, cancellationToken, onDependencyReady).ConfigureAwait(false); 279await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 317await Task.WhenAll(tasks).ConfigureAwait(false); 363await onDependencyReady(resourceId).ConfigureAwait(false); 387await Task.WhenAll(tasks).ConfigureAwait(false); 427await postRunningAction(resourceLogger, displayName, resourceId, resourceEvent).ConfigureAwait(false); 431await onDependencyReady(resourceId).ConfigureAwait(false); 460}, cancellationToken, onDependencyReady).ConfigureAwait(false); 512await PublishWaitingForDependenciesAsync(resource, pendingDependencyCounts.Keys).ConfigureAwait(false); 518await pendingDependencyLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 539await PublishWaitingForDependenciesAsync(resource, waitingFor).ConfigureAwait(false); 543await ClearWaitingForDependenciesAsync(resource).ConfigureAwait(false); 561await Task.WhenAll(pendingDependencies).ConfigureAwait(false); 564await pendingDependencyLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 577await ClearWaitingForDependenciesAsync(resource).ConfigureAwait(false); 1051await readyEventTask.ConfigureAwait(false); 1234await PublishUpdateAsync(resource, resourceName, stateFactory).ConfigureAwait(false);
Ats\BuilderExports.cs (4)
211await callback(@event).ConfigureAwait(false); 235await callback(@event).ConfigureAwait(false); 259await callback(@event).ConfigureAwait(false); 283await callback(@event).ConfigureAwait(false);
Backchannel\AppHostRpcTarget.cs (2)
240await activityReporter.CompleteInteractionAsync(promptId, answers, updateResponse: false, cancellationToken).ConfigureAwait(false); 245await activityReporter.CompleteInteractionAsync(promptId, answers, updateResponse: true, cancellationToken).ConfigureAwait(false);
Backchannel\AppHostStartupState.cs (1)
26await _ready.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (7)
264await StopAppHostAsync(cancellationToken).ConfigureAwait(false); 697await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 951await startupState.WaitForReadyAsync(cancellationToken).ConfigureAwait(false); 988await AddResult(instanceName).ConfigureAwait(false); 1730await logStreamCts.CancelAsync().ConfigureAwait(false); 1733await completeWriterTask.ConfigureAwait(false); 1861await Task.Delay(500, CancellationToken.None).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelService.cs (3)
104_ = Task.Run(async () => await HandleClientConnectionAsync(clientSocket, stoppingToken).ConfigureAwait(false), stoppingToken); 154stoppingToken).ConfigureAwait(false); 184await rpc.Completion.ConfigureAwait(false);
Backchannel\BackchannelService.cs (2)
70stoppingToken).ConfigureAwait(false); 95stoppingToken).ConfigureAwait(false);
Backchannel\TerminalHostControlClient.cs (1)
79await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
ConnectionStringBuilderExtensions.cs (4)
93await @evt.Eventing.PublishAsync(new BeforeResourceStartedEvent(r, @evt.Services), ct).ConfigureAwait(false); 100}).ConfigureAwait(false); 104.ConfigureAwait(false); 114}).ConfigureAwait(false);
ContainerResourceBuilderExtensions.cs (4)
73ctx.CancellationToken).ConfigureAwait(false); 1738await cb(callbackContext).ConfigureAwait(false); 1749await dockerfileBuilder.WriteAsync(writer, factoryContext.CancellationToken).ConfigureAwait(false); 1750await writer.FlushAsync(factoryContext.CancellationToken).ConfigureAwait(false);
Dashboard\DashboardEventHandlers.cs (1)
1045await _dashboardLogsTask.ConfigureAwait(false);
Dashboard\DashboardService.cs (9)
73context).ConfigureAwait(false); 147await responseStream.WriteAsync(change, cts.Token).ConfigureAwait(false); 165await serviceData.SendInteractionRequestAsync(request, cts.Token).ConfigureAwait(false); 296context).ConfigureAwait(false); 309await responseStream.WriteAsync(new() { InitialData = data }, cancellationToken).ConfigureAwait(false); 335await responseStream.WriteAsync(new() { Changes = changes }, cancellationToken).ConfigureAwait(false); 347context).ConfigureAwait(false); 392await responseStream.WriteAsync(update, cancellationToken).ConfigureAwait(false); 483await execute(cts.Token).ConfigureAwait(false);
Dashboard\DashboardServiceData.cs (1)
234cancellationToken).ConfigureAwait(false);
Dashboard\DashboardServiceHost.cs (2)
263await _app.StartAsync(cancellationToken).ConfigureAwait(false); 283await _app.StopAsync(cancellationToken).ConfigureAwait(false);
Dcp\ContainerCreator.cs (18)
263await CreateHostDependentContainerAsync(cr, hostDependencies, cctx, factory, cancellationToken).ConfigureAwait(false); 267await BuildAndCreateContainerAsync(cr, logger, factory, cancellationToken).ConfigureAwait(false); 305await ApplyBuildArgumentsAsync(dcpContainer, cr.ModelResource, _executionContext, logger, cToken).ConfigureAwait(false); 393await factory.CreateDcpObjectsAsync(new[] { dcpContainer }, cToken).ConfigureAwait(false); 399await factory.CreateRenderedResourcesAsync(containerExecCreator, containerExes, EmptyCreationContext.s_instance, cToken).ConfigureAwait(false); 413await factory.CreateDcpObjectsAsync([containerExe], cancellationToken).ConfigureAwait(false); 491await factory.CreateDcpObjectsAsync([tunnelProxy], cancellationToken).ConfigureAwait(false); 492await WaitForTunnelProxyAsync(tunnelProxy, factory, cancellationToken).ConfigureAwait(false); 505await cctx.ContainerPrerequisitesReady.WaitAsync(cancellationToken).ConfigureAwait(false); 515await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 531await Task.WhenAll([cctx.ContainerPrerequisitesReady, cctx.ContainerTunnelPrerequisitesReady]).WaitAsync(cancellationToken).ConfigureAwait(false); 534await factory.CreateDcpObjectsAsync(serviceObjects, cancellationToken).ConfigureAwait(false); 540await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 560await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 573await factory.UpdateWithEffectiveAddressInfo(serviceObjects, cancellationToken, TimeSpan.FromMinutes(1)).ConfigureAwait(false); 667await EnsureHostConnectivityAsync(hostDependencies, cctx, factory, cToken).ConfigureAwait(false); 676await BuildAndCreateContainerAsync(cr, _loggerService.GetLogger(cr.ModelResource), factory, cToken).ConfigureAwait(false); 933await DockerfileHelper.ExecuteDockerfileFactoryAsync(dockerfileBuildAnnotation, modelContainerResource, executionContext.Services, cancellationToken).ConfigureAwait(false);
Dcp\DcpDependencyCheck.cs (1)
34await _lock.WaitAsync(cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (46)
191await _executorEvents.PublishAsync(new OnResourcesPreparedContext(ct)).ConfigureAwait(false); 199await createServices.ConfigureAwait(false); 204await UpdateWithEffectiveAddressInfo(proxiedWithNoAddress, ct, TimeSpan.FromMinutes(1)).ConfigureAwait(false); 211await Task.WhenAll([getProxyAddresses, createContainerNetworks]).WaitAsync(ct).ConfigureAwait(false); 248await createWorkloadEndpoints.ConfigureAwait(false); 250await CreateRenderedResourcesAsync(_executableCreator, executables, EmptyCreationContext.s_instance, ct).ConfigureAwait(false); 259await createWorkloadEndpoints.ConfigureAwait(false); 261await CreateRenderedResourcesAsync(_containerCreator, containers, cctx, ct).ConfigureAwait(false); 265await Task.WhenAll(createExecutables, createContainers).WaitAsync(ct).ConfigureAwait(false); 287await _resourceWatcher.StopAsync(cancellationToken).ConfigureAwait(false); 302await _kubernetesService.CleanupResourcesAsync(cancellationToken).ConfigureAwait(false); 311await _kubernetesService.StopServerAsync(Model.ResourceCleanup.Full, cancellationToken).ConfigureAwait(false); 327await StopAsync(disposeCts.Token).ConfigureAwait(false); 636await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 913await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 949).ConfigureAwait(false); 970).ConfigureAwait(false); 990).ConfigureAwait(false); 995await CreateReplicaAsync(er).ConfigureAwait(false); 1001await PublishConnectionStringAvailableEventAsync(modelResource, cancellationToken).ConfigureAwait(false); 1006await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, modelResource, startingDcpName)).ConfigureAwait(false); 1010await CreateReplicaAsync(er).ConfigureAwait(false); 1017await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, modelResource, DcpResourceName: null)).ConfigureAwait(false); 1042await creator.CreateObjectAsync(er, context, resourceLogger, this, cancellationToken).ConfigureAwait(false); 1043await PublishConnectionStringAvailableEventAsync(er.ModelResource, cancellationToken).ConfigureAwait(false); 1054await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name, ex.Message)).ConfigureAwait(false); 1059await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false); 1138await appResource.Initialized.WaitAsync(cancellationToken).ConfigureAwait(false); 1209await appResource.Initialized.WaitAsync(cancellationToken).ConfigureAwait(false); 1218await PublishConnectionStringAvailableEventAsync(cr.ModelResource, cancellationToken).ConfigureAwait(false); 1219await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, cr.ModelResource, cr.DcpResourceName)).ConfigureAwait(false); 1224await PublishConnectionStringAvailableEventAsync(er.ModelResource, cancellationToken).ConfigureAwait(false); 1225await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, er.ModelResource, er.DcpResourceName)).ConfigureAwait(false); 1230await EnsureResourceDeletedAsync<Container>(resourceReference, cancellationToken).ConfigureAwait(false); 1235await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1236await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1238await _containerCreator.CreateObjectAsync(cr, cctx, resourceLogger, this, cancellationToken).ConfigureAwait(false); 1239await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1242await EnsureResourceDeletedAsync<Executable>(resourceReference, cancellationToken).ConfigureAwait(false); 1247await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1248await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1249await _executableCreator.CreateObjectAsync(er, EmptyCreationContext.s_instance, resourceLogger, this, cancellationToken).ConfigureAwait(false); 1250await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1267await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false); 1379await _distributedApplicationEventing.PublishAsync(ev, EventDispatchBehavior.BlockingSequential, ct).ConfigureAwait(false); 1398await _executorEvents.PublishAsync(new OnConnectionStringAvailableContext(ct, resource)).ConfigureAwait(false);
Dcp\DcpExecutorEvents.cs (1)
34await callback(context).ConfigureAwait(false);
Dcp\DcpHost.cs (6)
80await EnsureDcpContainerRuntimeAsync(cancellationToken).ConfigureAwait(false); 81await EnsureDevelopmentCertificateTrustAsync(cancellationToken).ConfigureAwait(false); 82await PrepareDcpTlsCertificateAsync(cancellationToken).ConfigureAwait(false); 113await Task.Delay(TimeSpan.FromSeconds(2), timeoutCancellation.Token).ConfigureAwait(false); 266await TaskHelpers.WaitIgnoreCancelAsync(_logProcessorTask, _logger, "Error in logging socket processor.").ConfigureAwait(false); 455await Task.WhenAll(outputLoggers).ConfigureAwait(false);
Dcp\DcpResourceWatcher.cs (7)
130Task.Run(() => WatchKubernetesResourceAsync<Endpoint>(ProcessEndpointChange))).ConfigureAwait(false); 208await outputSemaphore.WaitAsync(pipelineCancellationToken).ConfigureAwait(false); 212await handler(eventType, resource).ConfigureAwait(false); 253await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 268await StopAsync(cts.Token).ConfigureAwait(false); 352await _executorEvents.PublishAsync(new OnResourceChangedContext(_shutdownToken, resourceType, appModelResource, resource.Metadata.Name, status, s => snapshotFactory(resource, s))).ConfigureAwait(false); 923})).ConfigureAwait(false);
Dcp\ExecutableCreator.cs (1)
114.ConfigureAwait(false);
Dcp\KubernetesService.cs (1)
625await Task.Delay(TimeSpan.FromMilliseconds(dcpOptions.Value.KubernetesConfigReadRetryIntervalMilliseconds), cancellationToken).ConfigureAwait(false);
Dcp\Process\ProcessUtil.cs (4)
149await process.WaitForExitAsync().ConfigureAwait(false); 150await Task.WhenAll(stdoutComplete.Task, stderrComplete.Task).ConfigureAwait(false); 276await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false); 287await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
63}).ConfigureAwait(false);
Devcontainers\DevcontainerSettingsWriter.cs (5)
83await WriteSettingsAsync(batch, _processingCancellation.Token).ConfigureAwait(false); 117await EnsureSettingsFileExists(settingsPath, cancellationToken).ConfigureAwait(false); 185await File.WriteAllTextAsync(settingsPath, settingsContent, cancellationToken).ConfigureAwait(false); 197await Task.Delay(s_portForwardLogDelay, cancellationToken).ConfigureAwait(false); 257await writer.WriteAsync("{}".AsMemory(), cancellationToken).ConfigureAwait(false);
DeveloperCertificateService.cs (2)
187await s_certificateCacheSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 220await s_certificateCacheSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
DistributedApplication.cs (10)
468await ExecuteBeforeStartHooksAsync(cancellationToken).ConfigureAwait(false); 471await _host.StartAsync(cancellationToken).ConfigureAwait(false); 483await _host.StopAsync(cancellationToken).ConfigureAwait(false); 539await ExecuteBeforeStartHooksAsync(cancellationToken).ConfigureAwait(false); 544await _host.StartAsync(cancellationToken).ConfigureAwait(false); 553await _host.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false); 610await subscriber.SubscribeAsync(eventing, execContext, cancellationToken).ConfigureAwait(false); 634await eventing.PublishAsync(beforeStartEvent, cancellationToken).ConfigureAwait(false); 655await lifecycleHook.BeforeStartAsync(appModel, cancellationToken).ConfigureAwait(false); 703await beforeStartPipeline.ExecuteStepSequentiallyAsync(WellKnownPipelineSteps.BeforeStart, pipelineContext).ConfigureAwait(false);
DotnetToolResourceExtensions.cs (1)
112}).ConfigureAwait(false);
Eventing\DistributedApplicationEventing.cs (7)
43await Task.WhenAll(pendingSubscriptionCallbacks).ConfigureAwait(false); 49await Task.WhenAll(pendingSubscriptionCallbacks).ConfigureAwait(false); 61await InvokeSubscriptionCallbackAsync(subscription, @event, dispatchBehavior, cancellationToken).ConfigureAwait(false); 70await InvokeSubscriptionCallbackAsync(subscription, @event, dispatchBehavior, cancellationToken).ConfigureAwait(false); 108await callbackTask.ConfigureAwait(false); 130await callback(typedEvent, ct).ConfigureAwait(false); 165await callback(@event, cancellationToken).ConfigureAwait(false);
ExternalServiceBuilderExtensions.cs (4)
148}).ConfigureAwait(false); 160}).ConfigureAwait(false); 168await e.Eventing.PublishAsync(new BeforeResourceStartedEvent(e.Resource, e.Services), ct).ConfigureAwait(false); 177}).ConfigureAwait(false);
Health\ResourceHealthCheckService.cs (3)
58await MonitorResourceHealthAsync(state).ConfigureAwait(false); 206}).ConfigureAwait(false); 282.ConfigureAwait(false);
IInteractionService.cs (1)
202}).ConfigureAwait(false);
InteractionService.cs (2)
332await work(new ProgressContext { CancellationToken = interactionCts.Token }).ConfigureAwait(false); 635await validationCallback(context).ConfigureAwait(false);
Lifecycle\TerminalHostFailureDiagnosticService.cs (2)
85await SurfaceFailureAsync(host, evt.Snapshot, stoppingToken).ConfigureAwait(false); 110.ConfigureAwait(false);
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
120await cleanupTask.ConfigureAwait(false);
Orchestrator\ApplicationOrchestrator.cs (34)
112.ConfigureAwait(false); 186await completedTask.ConfigureAwait(false); 211await ProcessResourceUrlCallbacks(resource, cancellationToken).ConfigureAwait(false); 215await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 250.ConfigureAwait(false); 269.ConfigureAwait(false); 272await SetChildResourceAsync(context.Resource, state: KnownResourceStates.Starting, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 283await _eventing.PublishAsync(beforeResourceStartedEvent, context.CancellationToken).ConfigureAwait(false); 295await PublishResourcesInitialStateAsync(context.CancellationToken).ConfigureAwait(false); 300await PublishConnectionStringAvailableEvent(context.Resource, context.CancellationToken).ConfigureAwait(false); 465await callback.Callback(urlsCallbackContext).ConfigureAwait(false); 577await PublishResourceEndpointUrls(@event.Resource, cancellationToken).ConfigureAwait(false); 589await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false); 593await SetChildResourceAsync(context.Resource, context.Status.State, context.Status.StartupTimestamp, context.Status.FinishedTimestamp).ConfigureAwait(false); 608await PublishEventToHierarchy(r => new ResourceStoppedEvent(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false); 621await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = stateSnapshot }).ConfigureAwait(false); 625await SetChildResourceAsync(context.Resource, KnownResourceStates.FailedToStart, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 630await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false); 636await _dcpExecutor.RunApplicationAsync(cancellationToken).ConfigureAwait(false); 639await _eventing.PublishAsync(afterResourcesCreatedEvent, cancellationToken).ConfigureAwait(false); 643await lifecycleHook.AfterResourcesCreatedAsync(_model, cancellationToken).ConfigureAwait(false); 651await _dcpExecutor.StopAsync(cancellationToken).ConfigureAwait(false); 673}).ConfigureAwait(false); 679await _dcpExecutor.StartResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false); 686await _dcpExecutor.StopResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false); 704}).ConfigureAwait(false); 708.ConfigureAwait(false); 715await _parameterProcessor.InitializeParametersAsync(_model.Resources.OfType<ParameterResource>(), waitForResolution: false).ConfigureAwait(false); 736}).ConfigureAwait(false); 740await _eventing.PublishAsync(initializeEvent, EventDispatchBehavior.NonBlockingConcurrent, cancellationToken).ConfigureAwait(false); 761await _eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false); 776await PublishConnectionStringAvailableEvent(child, cancellationToken).ConfigureAwait(false); 785await _eventing.PublishAsync(createEvent(resource), cancellationToken).ConfigureAwait(false); 797await PublishEventToHierarchy(createEvent, child, cancellationToken).ConfigureAwait(false);
Orchestrator\OrchestratorHostService.cs (4)
39await _dcpHost.StartAsync(cancellationToken).ConfigureAwait(false); 41await _appOrchestrator.RunApplicationAsync(cancellationToken).ConfigureAwait(false); 46await _appOrchestrator.StopAsync(cancellationToken).ConfigureAwait(false); 57await disposable.DisposeAsync().AsTask().ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (17)
60await ProcessParameterAsync(parameterResource).ConfigureAwait(false); 72await task.ConfigureAwait(false); 89await HandleUnresolvedParametersAsync(_unresolvedParameters, cts.Token).ConfigureAwait(false); 115await CollectDependentParameterResourcesAsync(model, referencedParameters, cancellationToken).ConfigureAwait(false); 124await InitializeParametersAsync(allParameters, waitForResolution).ConfigureAwait(false); 130await SaveParametersToDeploymentStateAsync(allParameters, cancellationToken).ConfigureAwait(false); 164await UpdateParameterStateAsync(parameterResource, value, KnownResourceStates.Running).ConfigureAwait(false); 200await UpdateParameterStateAsync(parameterResource, ex.Message, new(stateText, stateStyle)).ConfigureAwait(false); 440await ApplyParameterValueAsync(parameterResource, value, shouldSave, cancellationToken).ConfigureAwait(false); 458await deploymentStateManager.DeleteSectionAsync(parameterSection, cancellationToken).ConfigureAwait(false); 483await UpdateParameterStateAsync(parameterResource, "Parameter value has been deleted", new(KnownResourceStates.ValueMissing, KnownResourceStateStyles.Warn)).ConfigureAwait(false); 510await UpdateParameterStateAsync(parameterResource, inputValue, KnownResourceStates.Running).ConfigureAwait(false); 523await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false); 582await allParametersResolved.Task.ConfigureAwait(false); 643await ApplyParameterValueAsync(parameter, inputValue, shouldSave, allParametersResolvedToken).ConfigureAwait(false); 685await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false); 710}).ConfigureAwait(false);
Pipelines\DistributedApplicationPipeline.cs (13)
56await parameterProcessor.InitializeParametersAsync(context.Model, waitForResolution: true, context.CancellationToken).ConfigureAwait(false); 113await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false); 198await Task.Delay(TimeSpan.FromSeconds(2), timeProvider, waitCts.Token).ConfigureAwait(false); 370await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false); 583await ExecuteStepsAsTaskDag(stepsToExecute, stepsByName, context).ConfigureAwait(false); 614await ExecuteStepsSequentially(stepsToExecute, context).ConfigureAwait(false); 630await ExecuteConfigurationCallbacksAsync(context, allSteps).ConfigureAwait(false); 800await callback(configContext).ConfigureAwait(false); 873await Task.WhenAll(depTasks).ConfigureAwait(false); 911await ExecuteStepAsync(step, stepContext).ConfigureAwait(false); 949await Task.WhenAll(allStepTasks).ConfigureAwait(false); 1021await ExecuteStepAsync(step, stepContext).ConfigureAwait(false); 1134await step.Action(stepContext).ConfigureAwait(false);
Pipelines\Internal\DeploymentStateManagerBase.cs (12)
76await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 147await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 150await SaveStateToStorageAsync(state, sectionName: null, originalSectionData: null, cancellationToken).ConfigureAwait(false); 186await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 249await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false); 253await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 258await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false); 270await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false); 274await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 279await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false); 360await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 363await ClearStateStorageAsync(cancellationToken).ConfigureAwait(false);
Pipelines\Internal\FileDeploymentStateManager.cs (4)
368await SaveMigrationStateAsync(deploymentStatePath, cancellationToken).ConfigureAwait(false); 369await WriteStateAsync(deploymentStatePath, _currentState, cancellationToken).ConfigureAwait(false); 412cancellationToken).ConfigureAwait(false); 470cancellationToken).ConfigureAwait(false);
Pipelines\Internal\UserSecretsDeploymentStateManager.cs (1)
44await _userSecretsManager.SaveStateAsync(state, cancellationToken).ConfigureAwait(false);
Pipelines\PipelineActivityReporter.cs (3)
318await WriteInteractionUpdateToClientAsync(interaction, cancellationToken).ConfigureAwait(false); 481cancellationToken).ConfigureAwait(false); 513await _interactionServiceSubscriber.ConfigureAwait(false);
Pipelines\PipelineStepHelpers.cs (8)
55await TagImageForLocalRegistryAsync(resource, context).ConfigureAwait(false); 59await PushImageToRemoteRegistryAsync(resource, registry, context).ConfigureAwait(false); 88await containerRuntime.TagImageAsync(localImageName, targetTag, context.CancellationToken).ConfigureAwait(false); 93context.CancellationToken).ConfigureAwait(false); 100context.CancellationToken).ConfigureAwait(false); 128await containerImageManager.PushImageAsync(resource, context.CancellationToken).ConfigureAwait(false); 133context.CancellationToken).ConfigureAwait(false); 140context.CancellationToken).ConfigureAwait(false);
Pipelines\ReportingStep.cs (3)
174await Reporter.CompleteStepAsync(this, completionText, completionState, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false); 187await Reporter.CompleteStepAsync(this, completionText.Value, completionState, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false); 220await Reporter.CompleteStepAsync(this, completionText, finalState, enableMarkdown: false, cancellationToken: CancellationToken.None).ConfigureAwait(false);
Pipelines\ReportingTask.cs (5)
57await ParentStep.Reporter.UpdateTaskAsync(this, statusText, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false); 64await ParentStep.Reporter.UpdateTaskAsync(this, statusText.Value, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false); 70await ParentStep.Reporter.CompleteTaskAsync(this, completionState, completionMessage, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false); 77await ParentStep.Reporter.CompleteTaskAsync(this, completionState, completionMessage.Value, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false); 91await CompleteAsync(cancellationToken: CancellationToken.None).ConfigureAwait(false);
Publishing\ContainerRuntimeBase.cs (7)
63localImageName, targetImageName).ConfigureAwait(false); 76imageName).ConfigureAwait(false); 87await TagImageAsync(localImageName, remoteImageName, cancellationToken).ConfigureAwait(false); 97remoteImageName).ConfigureAwait(false); 646await EnsureRuntimeAvailableAsync().ConfigureAwait(false); 702await EnsureRuntimeAvailableAsync().ConfigureAwait(false); 752await EnsureRuntimeAvailableAsync().ConfigureAwait(false);
Publishing\DockerContainerRuntime.cs (2)
41await CreateBuildkitInstanceAsync(builderName, cancellationToken).ConfigureAwait(false); 148cancellationToken).ConfigureAwait(false);
Publishing\ManifestPublisher.cs (3)
26await PublishInternalAsync(model, cancellationToken).ConfigureAwait(false); 58await WriteManifestAsync(model, jsonWriter, cancellationToken).ConfigureAwait(false); 70await context.WriteModel(model, cancellationToken).ConfigureAwait(false);
Publishing\ManifestPublishingContext.cs (24)
93await WriteResourceAsync(resource).ConfigureAwait(false); 96await WriteReferencedResources(model).ConfigureAwait(false); 100await WriteConditionalExpressionsAsync().ConfigureAwait(false); 105await Writer.FlushAsync(cancellationToken).ConfigureAwait(false); 119await WriteResourceObjectAsync(resource, () => manifestPublishingCallbackAnnotation.Callback(this)).ConfigureAwait(false); 124await WriteResourceObjectAsync(container, () => WriteContainerAsync(container)).ConfigureAwait(false); 128await WriteResourceObjectAsync(project, () => WriteProjectAsync(project)).ConfigureAwait(false); 132await WriteResourceObjectAsync(executable, () => WriteExecutableAsync(executable)).ConfigureAwait(false); 136await WriteResourceObjectAsync(parameter, () => WriteParameterAsync(parameter)).ConfigureAwait(false); 140await WriteResourceObjectAsync(resource, () => WriteConnectionStringAsync(resourceWithConnectionString)).ConfigureAwait(false); 144await WriteResourceObjectAsync(resource, WriteErrorAsync).ConfigureAwait(false); 150await action().ConfigureAwait(false); 198await WriteDeploymentTarget(deploymentTarget).ConfigureAwait(false); 203await WriteCommandLineArgumentsAsync(project).ConfigureAwait(false); 205await WriteEnvironmentVariablesAsync(project).ConfigureAwait(false); 216await manifestPublishingCallbackAnnotation.Callback(this).ConfigureAwait(false); 269await WriteCommandLineArgumentsAsync(executable).ConfigureAwait(false); 271await WriteEnvironmentVariablesAsync(executable).ConfigureAwait(false); 323await WriteBuildContextAsync(container).ConfigureAwait(false); 347await WriteDeploymentTarget(deploymentTarget).ConfigureAwait(false); 356await WriteCommandLineArgumentsAsync(container).ConfigureAwait(false); 364await WriteEnvironmentVariablesAsync(container).ConfigureAwait(false); 385await annotation.EmitDockerfileArtifactsAsync(dockerfileContext, resourceDockerfilePath).ConfigureAwait(false); 920await WriteResourceAsync(resource).ConfigureAwait(false);
Publishing\ManifestPublishingExtensions.cs (1)
70await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false);
Publishing\PipelineExecutor.cs (6)
42await backchannelService.BackchannelConnected.ConfigureAwait(false); 62).ConfigureAwait(false); 69).ConfigureAwait(false); 75await activityReporter.CompletePublishAsync(new PublishCompletionOptions { PipelineSummary = summaryItems }, stoppingToken).ConfigureAwait(false); 93await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.CompletedWithError }, stoppingToken).ConfigureAwait(false); 116await pipeline.ExecuteAsync(pipelineContext).ConfigureAwait(false);
Publishing\PodmanContainerRuntime.cs (3)
31await EnsureRuntimeAvailableAsync().ConfigureAwait(false); 229await RunPodmanSaveAsync(imageName, options, cancellationToken).ConfigureAwait(false); 293cancellationToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (14)
30await step.CompleteAsync(completionText, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 46await step.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 63await step.CompleteAsync(completionText, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 79await step.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 96await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 112await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 128await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false); 144await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false); 160await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 176await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 192await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 208await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 224await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 240await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Publishing\ResourceContainerImageManager.cs (8)
234await BuildImageAsync(resource, cancellationToken).ConfigureAwait(false); 270cancellationToken).ConfigureAwait(false); 286cancellationToken).ConfigureAwait(false); 303await _throttle.WaitAsync(cancellationToken).ConfigureAwait(false); 309await ExecuteDotnetPublishAsync(resource, options, cancellationToken).ConfigureAwait(false); 460await DockerfileHelper.ExecuteDockerfileFactoryAsync(dockerfileBuildAnnotation, resource, serviceProvider, cancellationToken).ConfigureAwait(false); 509cancellationToken).ConfigureAwait(false); 546await containerRuntime.PushImageAsync(resource, cancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (1)
3737await commandOptions.PrepareRequest(requestContext).ConfigureAwait(false);
ResourceLoggerForwarderService.cs (2)
53await Task.WhenAll(logWatchTasks).ConfigureAwait(false); 86await resourceLoggerService.WaitForCompletionAsync(resourceId, cancellationToken).ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
43await Task.Delay(s, cancellationToken).ConfigureAwait(false);
src\Shared\ContainerRuntimeDetector.cs (3)
171await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false); 273await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false); 352await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
src\Shared\FileLock.cs (1)
139await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
src\Shared\TaskHelpers.cs (1)
29await task.ConfigureAwait(false);
TerminalResourceBuilderExtensions.cs (1)
281cancellationToken).ConfigureAwait(false);
UserSecrets\UserSecretsManagerFactory.cs (2)
161await _semaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 168await File.WriteAllTextAsync(FilePath, json, Encoding.UTF8, cancellationToken).ConfigureAwait(false);
Utils\ConcurrencyUtils.cs (1)
52await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
Utils\DockerfileHelper.cs (1)
35await annotation.EmitDockerfileArtifactsAsync(context).ConfigureAwait(false);
VersionChecking\VersionCheckService.cs (1)
70await CheckForLatestAsync(stoppingToken).ConfigureAwait(false);
Aspire.Hosting.Azure (190)
AcrLoginService.cs (2)
99await containerRuntime.LoginToRegistryAsync(registryEndpoint, AcrUsername, refreshToken, cancellationToken).ConfigureAwait(false); 113await Task.Delay(s_loginRetryDelay, _timeProvider, cancellationToken).ConfigureAwait(false);
AzureBicepResource.cs (7)
52Action = async ctx => await ProvisionAzureBicepResourceAsync(ctx, this).ConfigureAwait(false), 360context.CancellationToken).ConfigureAwait(false); 366.ConfigureAwait(false); 371context.CancellationToken).ConfigureAwait(false); 386context.CancellationToken).ConfigureAwait(false); 545await Resource.ProvisioningTaskCompletionSource.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 603await provisioning.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
AzureEnvironmentResource.cs (10)
87await preparer.PrepareResourcesAsync(context.Model, context.CancellationToken).ConfigureAwait(false); 211context.CancellationToken).ConfigureAwait(false); 218context.CancellationToken).ConfigureAwait(false); 240context.CancellationToken).ConfigureAwait(false); 274context.CancellationToken).ConfigureAwait(false); 299context.CancellationToken).ConfigureAwait(false); 314context.CancellationToken).ConfigureAwait(false); 324context.CancellationToken).ConfigureAwait(false); 375context.CancellationToken).ConfigureAwait(false); 382context.CancellationToken).ConfigureAwait(false);
AzureEnvironmentResourceExtensions.cs (1)
96await provisioner.ProvisionResourcesAsync(model, cancellationToken).ConfigureAwait(false);
AzureProvisioningController.cs (91)
552await RunOperationAsync(model, new ResetStateIntent(ReprovisionAfterReset: false), cancellationToken).ConfigureAwait(false); 560await RunOperationAsync(model, new ForgetResourceStateIntent(resourceName), cancellationToken).ConfigureAwait(false); 596await RunOperationAsync(model, new DeleteAzureResourcesIntent(), cancellationToken).ConfigureAwait(false); 643await CancelResourceCoreAsync(model, resourceName, cancellationToken).ConfigureAwait(false); 651await RunOperationAsync(model, new DeleteAzureResourceIntent(resourceName), cancellationToken).ConfigureAwait(false); 1037cancellationToken).ConfigureAwait(false); 1044await ApplyResourceOverridesAsync(resource.AzureResource, cancellationToken).ConfigureAwait(false); 1060}).ConfigureAwait(false); 1065await ProvisionAzureResourcesAsync(azureResources, parentChildLookup, cancellationToken).ConfigureAwait(false); 1082cancellationToken).ConfigureAwait(false); 1184await ClearCachedDeploymentStateAsync(bicepResource, preserveOverrides, environmentLocation, currentLocationOverride, preserveInferredLocationOverrides, cancellationToken).ConfigureAwait(false); 1207}).ConfigureAwait(false); 1217await deploymentStateManager.DeleteSectionAsync(section, cancellationToken).ConfigureAwait(false); 1451await Task.Delay(DriftCheckInterval, _timeProvider, stoppingToken).ConfigureAwait(false); 1452await CheckForDriftAsync(model, stoppingToken).ConfigureAwait(false); 1475await ProcessOperationLoopAsync(stoppingToken).ConfigureAwait(false); 1503await ProcessQueuedOperationAsync(operation).ConfigureAwait(false); 1548await RefreshCommandStatesAsync(queuedOperation.Model, operationCancellationToken).ConfigureAwait(false); 1576await RefreshCommandStatesAsync(queuedOperation.Model, CancellationToken.None).ConfigureAwait(false); 1628await PromptForMissingAzureContextAsync(model, stoppingToken).ConfigureAwait(false); 1694await provisioningOptionsManager.PersistProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 1729await DeleteSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 1732await ResetResourcesAsync(model, azureResources, preserveOverrides: false, cancellationToken).ConfigureAwait(false); 1734await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false); 1750await ResetResourcesAsync(model, targetResources, preserveOverrides: false, cancellationToken).ConfigureAwait(false); 1772await provisioningOptionsManager.PersistProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 1783await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken, preserveInferredLocationOverrides: false).ConfigureAwait(false); 1784await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false); 1793await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken, preserveInferredLocationOverrides: false).ConfigureAwait(false); 1794await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false); 1809await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken).ConfigureAwait(false); 1810await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false); 1823cancellationToken).ConfigureAwait(false); 1830await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken).ConfigureAwait(false); 1831await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false); 1838cancellationToken).ConfigureAwait(false); 1913}).ConfigureAwait(false); 1925await DeleteCachedResourceForLocationChangeAsync(targetBicepResource, intent.Location, resourceDeletion, cancellationToken).ConfigureAwait(false); 1926await SetResourceLocationOverrideAsync(targetBicepResource.Name, intent.Location, cancellationToken).ConfigureAwait(false); 1933await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false); 1943await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false); 1981await PublishSyntheticProvisioningFailureAsync(model, targetResources, failureDetails).ConfigureAwait(false); 1985await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false); 2060}).ConfigureAwait(false); 2077}).ConfigureAwait(false); 2101}).ConfigureAwait(false); 2123await DeleteAzureResourceIdsAsync(resourceIds, intent.ResourceName, effectiveLocation, currentContext.Location, allowKeyVaultPurgeTimeout: true, cancellationToken).ConfigureAwait(false); 2124await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false); 2133}).ConfigureAwait(false); 2145}).ConfigureAwait(false); 2201}).ConfigureAwait(false); 2212cancellationToken).ConfigureAwait(false); 2380await action().ConfigureAwait(false); 2754await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false); 2778await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false); 2816await CancelCachedDeploymentAsync(deploymentId, loggerService.GetLogger(resource.AzureResource), cancellationToken).ConfigureAwait(false); 2822cancellationToken).ConfigureAwait(false); 2853await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false); 2875await armClient.CancelDeploymentAsync(deploymentId, cancellationToken).ConfigureAwait(false); 2913await AddDeploymentOperationTargetResourceIdsAsync(bicepResource, resourceIds, cancellationToken).ConfigureAwait(false); 2978await armClient.DeleteResourceAsync(resourceId, cancellationToken).ConfigureAwait(false); 3487await resourceDeletion.ArmClient.DeleteResourceAsync(resourceDeletion.ResourceId, cancellationToken).ConfigureAwait(false); 3595await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false); 3601await deploymentStateManager.DeleteSectionAsync(section, cancellationToken).ConfigureAwait(false); 3640await notificationService.PublishUpdateAsync(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false); 3680await notificationService.PublishUpdateAsync(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false); 3686await PublishAsync(resource.AzureResource).ConfigureAwait(false); 3690await PublishAsync(resource.Resource).ConfigureAwait(false); 3709await PublishAsync(child).ConfigureAwait(false); 3719await resource.AzureResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false); 3730}).ConfigureAwait(false); 3738}).ConfigureAwait(false); 3745}).ConfigureAwait(false); 3761}).ConfigureAwait(false); 3780}).ConfigureAwait(false); 3802}).ConfigureAwait(false); 3827}).ConfigureAwait(false); 3867await roleAssignment.RolesResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false); 3876}).ConfigureAwait(false); 3918await eventing.PublishAsync(beforeResourceStartedEvent, cancellationToken).ConfigureAwait(false); 3940await WaitForProvisioningDependenciesAsync(bicepResource, executionContext, cancellationToken).ConfigureAwait(false); 3954cancellationToken).ConfigureAwait(false); 3964await PublishConnectionStringAvailableEventAsync(resource.Resource, parentChildLookup, cancellationToken).ConfigureAwait(false); 3987cancellationToken).ConfigureAwait(false); 3991await PublishConnectionStringAvailableEventAsync(resource.Resource, parentChildLookup, cancellationToken).ConfigureAwait(false); 4064.OfType<Task>()).ConfigureAwait(false); 4105await eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false); 4114await PublishConnectionStringAvailableEventAsync(child, parentChildLookup, cancellationToken).ConfigureAwait(false); 4139cancellationToken).ConfigureAwait(false); 4151cancellationToken).ConfigureAwait(false); 4186})).ConfigureAwait(false);
AzurePublishingContext.cs (16)
100await WriteAzureArtifactsOutputAsync(ReportingStep, model, environment, cancellationToken).ConfigureAwait(false); 102await SaveToDiskAsync(outputPath).ConfigureAwait(false); 131await MapParameterAsync(environment.ResourceGroupName, cancellationToken).ConfigureAwait(false); 132await MapParameterAsync(environment.Location, cancellationToken).ConfigureAwait(false); 133await MapParameterAsync(environment.PrincipalId, cancellationToken).ConfigureAwait(false); 188await VisitAsync(existingAnnotation.ResourceGroup, MapParameterAsync, cancellationToken).ConfigureAwait(false); 189await VisitAsync(existingAnnotation.Subscription, MapParameterAsync, cancellationToken).ConfigureAwait(false); 190await VisitAsync(existingAnnotation.Name, MapParameterAsync, cancellationToken).ConfigureAwait(false); 197await VisitAsync(scope.ResourceGroup, MapParameterAsync, cancellationToken).ConfigureAwait(false); 199await VisitAsync(scope.Subscription, MapParameterAsync, cancellationToken).ConfigureAwait(false); 205await VisitAsync(parameter.Value, MapParameterAsync, cancellationToken).ConfigureAwait(false); 371await computeEnvironmentTask.CompleteAsync(message, state, cancellationToken).ConfigureAwait(false); 410await dockerfileBuildAnnotation.EmitDockerfileArtifactsAsync(context, resourceDockerfilePath).ConfigureAwait(false); 524await visitor(value, cancellationToken).ConfigureAwait(false); 530await VisitAsync(reference, visitor, visited, cancellationToken).ConfigureAwait(false); 548await File.WriteAllTextAsync(bicepPath, compiledBicep.Value).ConfigureAwait(false);
AzureResourcePreparer.cs (1)
45await BuildRoleAssignmentAnnotations(model, azureResources, cancellationToken).ConfigureAwait(false);
Provisioning\BicepUtilities.cs (6)
91await SetScopeValueAsync(scope, "resourceGroup", targetScope.ResourceGroup, cancellationToken).ConfigureAwait(false); 93await SetScopeValueAsync(scope, "subscription", targetScope.Subscription, cancellationToken).ConfigureAwait(false); 150await SetParametersAsync(parameters, resource, skipKnownValues: true, cancellationToken: cancellationToken).ConfigureAwait(false); 153await SetScopeAsync(scope, resource, cancellationToken).ConfigureAwait(false); 192await SetParametersAsync(parameters, resource, skipKnownValues: true, cancellationToken: cancellationToken).ConfigureAwait(false); 195await SetScopeAsync(scope, resource, cancellationToken).ConfigureAwait(false);
Provisioning\Internal\BaseProvisioningContextProvider.cs (3)
190cancellationToken).ConfigureAwait(false); 208await SaveProvisioningOptionsAsync(resourceGroupName, _options.TenantId, tenantDomain: null, azureStateSection, cancellationToken).ConfigureAwait(false); 246await _deploymentStateManager.SaveSectionAsync(azureStateSection, cancellationToken).ConfigureAwait(false);
Provisioning\Internal\DefaultArmClientProvider.cs (4)
234await WaitForKeyVaultToBeDeletedAsync(resource, timeProvider, cancellationToken).ConfigureAwait(false); 259await WaitForDeletedKeyVaultToBePurgedAsync(deletedVault, timeProvider, cancellationToken).ConfigureAwait(false); 291await Task.Delay(s_keyVaultDeletePollInterval, timeProvider, linkedCts.Token).ConfigureAwait(false); 322await Task.Delay(s_keyVaultPurgePollInterval, timeProvider, linkedCts.Token).ConfigureAwait(false);
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (5)
66await RetrieveAzureProvisioningOptions(cancellationToken).ConfigureAwait(false); 88await PromptForTenantAsync(cancellationToken).ConfigureAwait(false); 97await PromptForSubscriptionAsync(cancellationToken).ConfigureAwait(false); 106await PromptForLocationAndResourceGroupAsync(cancellationToken).ConfigureAwait(false); 404await PromptForLocationAsync(cancellationToken).ConfigureAwait(false);
Provisioning\Internal\RunModeProvisioningContextProvider.cs (9)
71await RehydrateProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 88await _provisioningOptionsLock.WaitAsync(cancellationToken).ConfigureAwait(false); 92await RehydrateProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 125await RehydrateProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 149await SaveProvisioningOptionsAsync(_options.ResourceGroup, cancellationToken).ConfigureAwait(false); 154await _provisioningOptionsLock.WaitAsync(cancellationToken).ConfigureAwait(false); 158await RehydrateProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 184await PersistProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false); 200await _provisioningOptionsLock.WaitAsync(cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (31)
151}).ConfigureAwait(false); 221await ClearCachedRunningDeploymentStateAsync(stateSection, cancellationToken).ConfigureAwait(false); 243await ClearCachedRunningDeploymentStateAsync(stateSection, cancellationToken).ConfigureAwait(false); 272await PublishCachedRunningDeploymentStateAsync(resource, context, deploymentId, currentLocation, tracker, cancellationToken).ConfigureAwait(false); 287await Task.Delay(s_deploymentOperationPollingInterval, _timeProvider, cancellationToken).ConfigureAwait(false); 340}).ConfigureAwait(false); 387await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false); 422await PersistReconciledProvisioningStateAsync(stateSection, DeploymentStateProvisioningStateCanceled, cancellationToken).ConfigureAwait(false); 423await PublishReconciledTerminalStateAsync(resource, AzureProvisioningStrings.ResourceStateAzureDeploymentCanceled).ConfigureAwait(false); 431await PersistReconciledProvisioningStateAsync(stateSection, DeploymentStateProvisioningStateFailed, cancellationToken).ConfigureAwait(false); 432await PublishReconciledTerminalStateAsync(resource, AzureProvisioningStrings.ResourceStateAzureDeploymentFailed).ConfigureAwait(false); 442await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false); 450}).ConfigureAwait(false); 461await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false); 465await deploymentStateManager.DeleteSectionAsync(stateSection, cancellationToken).ConfigureAwait(false); 545}).ConfigureAwait(false); 562.ConfigureAwait(false); 569await BicepUtilities.SetParametersAsync(parameters, resource, cancellationToken: cancellationToken).ConfigureAwait(false); 572await BicepUtilities.SetScopeAsync(scope, resource, cancellationToken: cancellationToken).ConfigureAwait(false); 592.ConfigureAwait(false); 624await deploymentStateManager.SaveSectionAsync(canceledStateSection, CancellationToken.None).ConfigureAwait(false); 661}).ConfigureAwait(false); 681await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false); 697.ConfigureAwait(false); 751await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false); 782await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false); 801await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false); 838.ConfigureAwait(false); 952await Task.Delay(s_deploymentOperationPollingInterval, _timeProvider, cancellationToken).ConfigureAwait(false); 1001.ConfigureAwait(false); 1297await deployments.CancelAsync(deploymentName, CancellationToken.None).ConfigureAwait(false);
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
149await process.WaitForExitAsync().ConfigureAwait(false); 150await Task.WhenAll(stdoutComplete.Task, stderrComplete.Task).ConfigureAwait(false); 276await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false); 287await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Azure.AppContainers (6)
AzureContainerAppEnvironmentResource.cs (1)
167context.CancellationToken).ConfigureAwait(false);
BaseContainerAppContext.cs (4)
107await ProcessEnvironmentAsync(cancellationToken).ConfigureAwait(false); 108await ProcessArgumentsAsync(cancellationToken).ConfigureAwait(false); 124await c.Callback(context).ConfigureAwait(false); 137await c.Callback(context).ConfigureAwait(false);
ContainerAppEnvironmentContext.cs (1)
77await context.ProcessResourceAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppService (9)
AzureAppServiceEnvironmentContext.cs (1)
77await context.ProcessAsync(cancellationToken).ConfigureAwait(false);
AzureAppServiceEnvironmentResource.cs (4)
252context.CancellationToken).ConfigureAwait(false); 263context.CancellationToken).ConfigureAwait(false); 304context.CancellationToken).ConfigureAwait(false); 313context.CancellationToken).ConfigureAwait(false);
AzureAppServiceWebsiteContext.cs (4)
59await ProcessEnvironmentAsync(cancellationToken).ConfigureAwait(true); 60await ProcessArgumentsAsync(cancellationToken).ConfigureAwait(true); 72await c.Callback(context).ConfigureAwait(true); 88await c.Callback(context).ConfigureAwait(true);
Aspire.Hosting.Azure.ContainerRegistry (2)
AzureContainerRegistryHelpers.cs (2)
51context.CancellationToken).ConfigureAwait(false); 56context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
242}).ConfigureAwait(false);
Aspire.Hosting.Azure.Kubernetes (4)
AzureKubernetesEnvironmentExtensions.cs (1)
890await annotation.Callback(context).ConfigureAwait(false);
AzureKubernetesEnvironmentResource.AksPipeline.cs (3)
279await File.WriteAllTextAsync(kubeConfigPath, kubeConfigContent, context.CancellationToken).ConfigureAwait(false); 389context.CancellationToken).ConfigureAwait(false); 557await Task.Delay(pollInterval, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
272await CreateDatabaseAsync(adminProvider, kustoDatabase, evt.Services, ct).ConfigureAwait(false); 317}).ConfigureAwait(false);
Aspire.Hosting.Azure.Kusto.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Azure.Sandboxes (54)
AzureSandboxContainerDeployment.cs (44)
263await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 294await diskTask.CompleteAsync($"Created sandbox disk image {diskImageId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 320await createTask.CompleteAsync($"Created sandbox {sandboxId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 333await lifecycleTask.CompleteAsync("Lifecycle policy configured", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 349await WaitForPublicHttpAsync(endpointUrl, GetPublicEndpointReadyTimeout(resource), context.CancellationToken).ConfigureAwait(false); 363await exposeTask.CompleteAsync(new MarkdownString($"Public URL: [{endpointUrl}]({endpointUrl})"), CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 398await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 428throwOnError: securityConfigurationChanged).ConfigureAwait(false); 440throwOnError: true).ConfigureAwait(false); 454throwOnError: true).ConfigureAwait(false); 464await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 509deploymentCleanupCts.Token).ConfigureAwait(false); 520deploymentCleanupCts.Token).ConfigureAwait(false); 530deploymentCleanupCts.Token).ConfigureAwait(false); 699await Task.Delay(TimeSpan.FromSeconds(2), context.CancellationToken).ConfigureAwait(false); 1045await callback.Callback(callbackContext).ConfigureAwait(false); 1116await callback.Callback(callbackContext).ConfigureAwait(false); 1294context.CancellationToken).ConfigureAwait(false); 1308throwOnError: true).ConfigureAwait(false); 1312context.CancellationToken).ConfigureAwait(false); 1324await DeleteExistingDeploymentAsync(context, client, scope, stateSection, throwOnError: true).ConfigureAwait(false); 1328await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, ownerId, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false); 1337throwOnError: true).ConfigureAwait(false); 1341await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, pendingOwnerCleanupId, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false); 1346await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, stableOwnerIdForScope, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false); 1348await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1376await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1395await DeleteExistingDeploymentAsync(context, client, scope, stateSection, throwOnError: true).ConfigureAwait(false); 1399await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, ownerId, resourceName, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false); 1408throwOnError: true).ConfigureAwait(false); 1423throwOnError: true).ConfigureAwait(false); 1425await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1426await cleanupTask.CompleteAsync($"Deleted stale sandbox deployment {sectionName}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 1520await DeleteSandboxAsync(context, client, scope, sandboxId, GetStatePorts(stateSection), throwOnError).ConfigureAwait(false); 1533await DeleteDiskImageAsync(context, client, scope, diskImageId, throwOnError).ConfigureAwait(false); 1591throwOnError).ConfigureAwait(false); 1607await DeleteDiskImageAsync(context, client, scope, diskImage.Id, throwOnError).ConfigureAwait(false); 1644cancellationToken).ConfigureAwait(false); 1665cancellationToken).ConfigureAwait(false); 1680await Task.Delay(delay, cancellationToken).ConfigureAwait(false); 1730pollInterval).ConfigureAwait(false); 2175await Task.Delay(TimeSpan.FromSeconds(2), cancellationToken).ConfigureAwait(false); 2221await client.DeleteSandboxAsync(scope, sandboxId, effectiveCancellationToken).ConfigureAwait(false); 2256await client.DeleteDiskImageAsync(scope, diskImageId, effectiveCancellationToken).ConfigureAwait(false);
AzureSandboxGroupResource.cs (3)
94await annotation.Callback(context).ConfigureAwait(false); 240await AzureSandboxContainerDeployment.ConfigureDeployOrderingAsync(context, sandboxContainer).ConfigureAwait(false); 251await Task.CompletedTask.ConfigureAwait(false);
Internal\Adc\AzureDevComputeClient.cs (6)
197await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false); 214await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false); 255await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false); 320await Task.Delay(networkRetryDelay, cancellationToken).ConfigureAwait(false); 346await Task.Delay(forbiddenRetryDelay, cancellationToken).ConfigureAwait(false); 365await Task.Delay(delay, cancellationToken).ConfigureAwait(false);
src\Shared\FileLock.cs (1)
139await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (16)
AzureBicepProvisionerTests.cs (1)
646await allLookupsStarted.Task.WaitAsync(TimeSpan.FromSeconds(5), cancellationToken).ConfigureAwait(false);
AzureEnvironmentResourceExtensionsTests.cs (10)
5141await signalTask.ConfigureAwait(false); 5147await operationTask.ConfigureAwait(false); 5166await Task.Delay(TimeSpan.FromMilliseconds(20), watchdog.Token).ConfigureAwait(false); 5619await AllowFirstProvisionToComplete.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 5642await AllowFirstProvisionToComplete.Task.ConfigureAwait(false); 5660await AllowFirstProvisionToThrow.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 5696await AllowFirstProvisionToComplete.Task.ConfigureAwait(false); 5700await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false); 5780await AllowChildProvisionToComplete.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 5943await AllowDeleteToComplete.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
DefaultArmClientProviderTests.cs (3)
416await WaitForConcurrentNestedDeploymentOperationRequestAsync().ConfigureAwait(false); 574await _nestedDeploymentOperationRequestsStarted.Task.WaitAsync(TimeSpan.FromSeconds(5)).ConfigureAwait(false); 782await timerCreatedTask.WaitAsync(TimeSpan.FromSeconds(5)).ConfigureAwait(false);
tests\Shared\TestInteractionService.cs (2)
99await workTask.ConfigureAwait(false); 108await workTask.ConfigureAwait(false);
Aspire.Hosting.Blazor (13)
BlazorGatewayExtensions.cs (3)
376await EndpointsManifestTransformer.MergeRuntimeManifestsAsync(manifests, mergedRuntimePath, context.Logger, context.CancellationToken).ConfigureAwait(false); 448}).ConfigureAwait(false); 516await File.WriteAllTextAsync(destEndpoints, modifiedEndpoints, context.CancellationToken).ConfigureAwait(false);
BrowserDebuggerHelper.cs (9)
139await debugSessionLock.WaitAsync(context.CancellationToken).ConfigureAwait(false); 166await watcherCts.CancelAsync().ConfigureAwait(false); 176await orchestrator.StartResourceAsync(dcpInstanceName, context.CancellationToken).ConfigureAwait(false); 197await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 236await debugSessionLock.WaitAsync(context.CancellationToken).ConfigureAwait(false); 246await orchestrator.StopResourceAsync(dcpInstanceName, context.CancellationToken).ConfigureAwait(false); 251await watcherCts.CancelAsync().ConfigureAwait(false); 256await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 324await resourceNotificationService.PublishUpdateAsync(commandTargetResource, s => s).ConfigureAwait(false);
Manifests\EndpointsManifestTransformer.cs (1)
126ct).ConfigureAwait(false);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
516await callback.Callback(context).ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Browsers (49)
BrowserEndpointDiscovery.cs (1)
185await JsonSerializer.SerializeAsync(stream, metadata, s_jsonContext.BrowserDebugEndpointMetadata, cancellationToken).ConfigureAwait(false);
BrowserHostRegistry.cs (3)
152await DisposeLockAsync().ConfigureAwait(false); 218await _lock.WaitAsync(cancellationToken).ConfigureAwait(false); 286await lockUsersDrained.ConfigureAwait(false);
BrowserLogsBuilderExtensions.cs (1)
163await sessionManager.StartSessionAsync(browserLogsResource, currentConfiguration, context.ResourceName, url, context.CancellationToken).ConfigureAwait(false);
BrowserLogsCdpConnection.cs (7)
92await connector.ConnectAsync(webSocketUri, cancellationToken).ConfigureAwait(false); 215await _receiveLoop.ConfigureAwait(false); 250await _sendLock.WaitAsync(sendCts.Token).ConfigureAwait(false); 255await _transport.SendAsync(payload, sendCts.Token).ConfigureAwait(false); 287await HandleFrameAsync(frame).ConfigureAwait(false); 485await _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Disposed", closeCts.Token).ConfigureAwait(false); 531await _writeStream.FlushAsync(cancellationToken).ConfigureAwait(false);
BrowserLogsCdpConnectionMultiplexer.cs (1)
213await completedTask.ConfigureAwait(false);
BrowserLogsConfigurationManager.cs (1)
158await PublishConfigurationSnapshotAsync(browserLogsResource, browserConfiguration).ConfigureAwait(false);
BrowserLogsRunningSession.cs (8)
160await session.InitializeAsync(cancellationToken).ConfigureAwait(false); 166await session.CleanupAsync().ConfigureAwait(false); 199await DisposePageSessionAsync().ConfigureAwait(false); 200await DisposeBrowserHostLeaseAsync().ConfigureAwait(false); 295await CleanupAsync().ConfigureAwait(false); 304await onCompleted(result.ExitCode, result.Error).ConfigureAwait(false); 321await DisposePageSessionAsync().ConfigureAwait(false); 322await DisposeBrowserHostLeaseAsync().ConfigureAwait(false);
BrowserLogsSessionManager.cs (11)
74await resourceState.Lock.WaitAsync(cancellationToken).ConfigureAwait(false); 106exitCode: null).ConfigureAwait(false); 133fallbackStartTimeStamp: launchStartedAt).ConfigureAwait(false); 143await HandleSessionCompletedAsync(resource, resourceName, resourceState, session.SessionId, exitCode, error).ConfigureAwait(false); 171exitCode: null).ConfigureAwait(false); 192await resourceState.Lock.WaitAsync(cancellationToken).ConfigureAwait(false); 261await resourceState.Lock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 283await session.StopAsync(CancellationToken.None).ConfigureAwait(false); 293await Task.WhenAll(completionObservers).ConfigureAwait(false); 327await resourceState.Lock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 362exitCode: hasActiveSessions ? null : exitCode).ConfigureAwait(false);
BrowserPageSession.cs (16)
79await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false); 166await pageSession.ConnectAsync(createTarget: true, cancellationToken).ConfigureAwait(false); 189await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 216await DisposeConnectionAsync().ConfigureAwait(false); 237await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false); 241await DisposeConnectionCoreAsync().ConfigureAwait(false); 267await _connection.EnablePageInstrumentationAsync(_targetSessionId, cancellationToken).ConfigureAwait(false); 353await connectionSnapshot.Completion.ConfigureAwait(false); 378await DisposeConnectionAsync().ConfigureAwait(false); 384await DisposeConnectionAsync().ConfigureAwait(false); 404await ConnectAsync(createTarget: false, _stopCts.Token).ConfigureAwait(false); 417await DisposeConnectionAsync().ConfigureAwait(false); 422await Task.Delay(s_connectionRecoveryDelay, _timeProvider, _stopCts.Token).ConfigureAwait(false); 457await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 471await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 474await DisposeConnectionCoreAsync().ConfigureAwait(false);
Aspire.Hosting.Browsers.Tests (53)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
185await JsonSerializer.SerializeAsync(stream, metadata, s_jsonContext.BrowserDebugEndpointMetadata, cancellationToken).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (3)
152await DisposeLockAsync().ConfigureAwait(false); 218await _lock.WaitAsync(cancellationToken).ConfigureAwait(false); 286await lockUsersDrained.ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
163await sessionManager.StartSessionAsync(browserLogsResource, currentConfiguration, context.ResourceName, url, context.CancellationToken).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (7)
92await connector.ConnectAsync(webSocketUri, cancellationToken).ConfigureAwait(false); 215await _receiveLoop.ConfigureAwait(false); 250await _sendLock.WaitAsync(sendCts.Token).ConfigureAwait(false); 255await _transport.SendAsync(payload, sendCts.Token).ConfigureAwait(false); 287await HandleFrameAsync(frame).ConfigureAwait(false); 485await _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Disposed", closeCts.Token).ConfigureAwait(false); 531await _writeStream.FlushAsync(cancellationToken).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnectionMultiplexer.cs (1)
213await completedTask.ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
158await PublishConfigurationSnapshotAsync(browserLogsResource, browserConfiguration).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsRunningSession.cs (8)
160await session.InitializeAsync(cancellationToken).ConfigureAwait(false); 166await session.CleanupAsync().ConfigureAwait(false); 199await DisposePageSessionAsync().ConfigureAwait(false); 200await DisposeBrowserHostLeaseAsync().ConfigureAwait(false); 295await CleanupAsync().ConfigureAwait(false); 304await onCompleted(result.ExitCode, result.Error).ConfigureAwait(false); 321await DisposePageSessionAsync().ConfigureAwait(false); 322await DisposeBrowserHostLeaseAsync().ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (11)
74await resourceState.Lock.WaitAsync(cancellationToken).ConfigureAwait(false); 106exitCode: null).ConfigureAwait(false); 133fallbackStartTimeStamp: launchStartedAt).ConfigureAwait(false); 143await HandleSessionCompletedAsync(resource, resourceName, resourceState, session.SessionId, exitCode, error).ConfigureAwait(false); 171exitCode: null).ConfigureAwait(false); 192await resourceState.Lock.WaitAsync(cancellationToken).ConfigureAwait(false); 261await resourceState.Lock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 283await session.StopAsync(CancellationToken.None).ConfigureAwait(false); 293await Task.WhenAll(completionObservers).ConfigureAwait(false); 327await resourceState.Lock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 362exitCode: hasActiveSessions ? null : exitCode).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (16)
79await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false); 166await pageSession.ConnectAsync(createTarget: true, cancellationToken).ConfigureAwait(false); 189await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 216await DisposeConnectionAsync().ConfigureAwait(false); 237await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false); 241await DisposeConnectionCoreAsync().ConfigureAwait(false); 267await _connection.EnablePageInstrumentationAsync(_targetSessionId, cancellationToken).ConfigureAwait(false); 353await connectionSnapshot.Completion.ConfigureAwait(false); 378await DisposeConnectionAsync().ConfigureAwait(false); 384await DisposeConnectionAsync().ConfigureAwait(false); 404await ConnectAsync(createTarget: false, _stopCts.Token).ConfigureAwait(false); 417await DisposeConnectionAsync().ConfigureAwait(false); 422await Task.Delay(s_connectionRecoveryDelay, _timeProvider, _stopCts.Token).ConfigureAwait(false); 457await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 471await _connectionLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 474await DisposeConnectionCoreAsync().ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
tests\Shared\TestInteractionService.cs (2)
99await workTask.ConfigureAwait(false); 108await workTask.ConfigureAwait(false);
Aspire.Hosting.Containers.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (20)
DevTunnelCli.cs (2)
278await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 290await Task.WhenAll(stdoutTask, stderrTask).ConfigureAwait(false);
DevTunnelCliClient.cs (2)
149await Task.Delay(_cliRetryOnErrorDelay, cancellationToken).ConfigureAwait(false); 237await Task.Delay(_cliRetryOnErrorDelay, cancellationToken).ConfigureAwait(false);
DevTunnelHealthCheck.cs (1)
69_ = Task.Run(() => _loggedOutNotificationManager.NotifyUserLoggedOutAsync(cancellationToken).ConfigureAwait(false));
DevTunnelResourceBuilderExtensions.cs (11)
143await devTunnelEnvironmentManager.EnsureUserLoggedInAsync(ct).ConfigureAwait(false); 173await Task.WhenAll(portTasks).ConfigureAwait(false); 197}).ConfigureAwait(false); 221await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, e.Services), EventDispatchBehavior.NonBlockingConcurrent, ct).ConfigureAwait(false); 708await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, services), EventDispatchBehavior.NonBlockingSequential, ct).ConfigureAwait(false); 713}).ConfigureAwait(false); 722await eventing.PublishAsync<ResourceEndpointsAllocatedEvent>(new(portResource, services), ct).ConfigureAwait(false); 746}).ConfigureAwait(false); 764}).ConfigureAwait(false); 793}).ConfigureAwait(false); 794await eventing.PublishAsync<ResourceStoppedEvent>(new(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
src\Shared\CoalescingAsyncOperation.cs (4)
32await _gate.WaitAsync(cancellationToken).ConfigureAwait(false); 59await current.WaitAsync(cancellationToken).ConfigureAwait(false); 62private async Task ExecuteWrapperAsync(CancellationToken ct) => await ExecuteCoreAsync(ct).ConfigureAwait(false); 72await _gate.WaitAsync().ConfigureAwait(false);
Aspire.Hosting.DevTunnels.Tests (4)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
tests\Shared\TestInteractionService.cs (2)
99await workTask.ConfigureAwait(false); 108await workTask.ConfigureAwait(false);
Aspire.Hosting.Docker (25)
DockerComposeEnvironmentContext.cs (4)
31await ProcessEnvironmentVariablesAsync(serviceResource, executionContext, cancellationToken).ConfigureAwait(false); 34await ProcessArgumentsAsync(serviceResource, executionContext, cancellationToken).ConfigureAwait(false); 146await callback.Callback(context).ConfigureAwait(false); 178await callback.Callback(context).ConfigureAwait(false);
DockerComposeEnvironmentResource.cs (12)
154ctx.CancellationToken).ConfigureAwait(false); 158await ConfirmDestroyAsync(ctx, Name).ConfigureAwait(false); 179await runtime.ComposeDownAsync(composeContext, ctx.CancellationToken).ConfigureAwait(false); 183ctx.CancellationToken).ConfigureAwait(false); 189await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false); 422await runtime.ComposeUpAsync(composeContext, context.CancellationToken).ConfigureAwait(false); 430await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 435context.CancellationToken).ConfigureAwait(false); 439await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 468await runtime.ComposeDownAsync(composeContext, context.CancellationToken).ConfigureAwait(false); 473context.CancellationToken).ConfigureAwait(false); 477await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
DockerComposePublishingContext.cs (3)
61await WriteDockerComposeOutputAsync(model, environment).ConfigureAwait(false); 98await dockerfileBuildAnnotation.EmitDockerfileArtifactsAsync(dockerfileContext, resourceDockerfilePath).ConfigureAwait(false); 149await File.WriteAllTextAsync(outputFile, composeOutput, cancellationToken).ConfigureAwait(false);
DockerComposeServiceResource.cs (2)
47Action = async ctx => await PrintEndpointsAsync(ctx, _composeEnvironmentResource).ConfigureAwait(false), 127await AddEnvironmentVariablesAndCommandLineArgsAsync(composeService).ConfigureAwait(false);
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
149await process.WaitForExitAsync().ConfigureAwait(false); 150await Task.WhenAll(stdoutComplete.Task, stderrComplete.Task).ConfigureAwait(false); 276await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false); 287await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Dotnet.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.DotnetTool.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.EntityFrameworkCore (21)
EFCoreOperationExecutor.cs (4)
275await s_globalDotnetEfLock.WaitAsync(_cancellationToken).ConfigureAwait(false); 326await Task.Delay(100, _cancellationToken).ConfigureAwait(false); 328await logCancellation.CancelAsync().ConfigureAwait(false); 331await logTask.WaitAsync(TimeSpan.FromSeconds(5), _cancellationToken).ConfigureAwait(false);
EFResourceBuilderExtensions.cs (17)
438}).ConfigureAwait(false); 476}).ConfigureAwait(false); 486}).ConfigureAwait(false); 498}).ConfigureAwait(false); 509await Task.WhenAll(stdoutTask, stderrTask).ConfigureAwait(false); 510await process.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 518}).ConfigureAwait(false); 554}).ConfigureAwait(false); 579}).ConfigureAwait(false); 684await callback.Callback(context).ConfigureAwait(false); 849await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Waiting, KnownResourceStateStyles.Info).ConfigureAwait(false); 850await resourceNotificationService.WaitForDependenciesAsync(migrationResource, context.CancellationToken).ConfigureAwait(false); 853await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Running, KnownResourceStateStyles.Info).ConfigureAwait(false); 871await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Finished, KnownResourceStateStyles.Info).ConfigureAwait(false); 875await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.FailedToStart, KnownResourceStateStyles.Error).ConfigureAwait(false); 883await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.NotStarted, KnownResourceStateStyles.Info).ConfigureAwait(false); 890await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.FailedToStart, KnownResourceStateStyles.Error).ConfigureAwait(false);
Aspire.Hosting.Foundry (31)
FoundryExtensions.cs (12)
298}).ConfigureAwait(false); 302await FoundryLocalService.StartAsync(logger, ct).ConfigureAwait(false); 317}).ConfigureAwait(false); 325}).ConfigureAwait(false); 354}).ConfigureAwait(false); 365}).ConfigureAwait(false); 375await eventing.PublishAsync(connectionStringAvailableEvent, ct).ConfigureAwait(false); 380}).ConfigureAwait(false); 385}).ConfigureAwait(false); 387await FoundryLocalService.LoadModelAsync(deployment.ModelId, ct).ConfigureAwait(false); 392}).ConfigureAwait(false); 401}).ConfigureAwait(false);
FoundryLocalService.cs (4)
30await s_managerLock.WaitAsync(cancellationToken).ConfigureAwait(false); 38await StartCliServiceAsync(logger, cancellationToken).ConfigureAwait(false); 82await s_managerLock.WaitAsync(CancellationToken.None).ConfigureAwait(false); 217await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
HostedAgent\AzureHostedAgentResource.cs (3)
179await UpdateAgentEndpointProtocolsAsync(projectClient.AgentAdministrationClient, def, context.CancellationToken).ConfigureAwait(false); 182await AssignFoundryRoleToAgentIdentityAsync(context, project, result.Value, provisioningContext).ConfigureAwait(false); 319await callback.Callback(envContext).ConfigureAwait(false);
Project\ProjectResource.cs (1)
83$"https://ai.azure.com/nextgen/r/{encodedSubscriptionId},{resourceGroupName},,{Parent.Name},{Name}/home").ConfigureAwait(false);
PromptAgent\AzurePromptAgentResource.cs (11)
312await DeployForRunModeAsync(context, linkedCts.Token).ConfigureAwait(false); 334}).ConfigureAwait(false); 340}).ConfigureAwait(false); 342await WaitForProjectAndToolsAsync(notificationService, cancellationToken).ConfigureAwait(false); 347}).ConfigureAwait(false); 361}).ConfigureAwait(false); 371}).ConfigureAwait(false); 383}).ConfigureAwait(false); 391await projectProvisioning.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 398cancellationToken).ConfigureAwait(false); 410await Task.WhenAll(toolConnectionProvisioningTasks.Select(task => task.WaitAsync(cancellationToken))).ConfigureAwait(false);
Aspire.Hosting.Foundry.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.GitHub.Models (2)
GitHubModelsExtensions.cs (2)
77}).ConfigureAwait(false); 81.ConfigureAwait(false);
Aspire.Hosting.GitHub.Models.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.JavaScript.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Kafka.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (59)
CertManagerExtensions.cs (1)
452await File.WriteAllTextAsync(manifestPath, manifest, context.CancellationToken).ConfigureAwait(false);
Deployment\HelmDeploymentEngine.cs (16)
141await HelmVersionValidator.EnsureMinimumVersionAsync(helmRunner, ctx.CancellationToken).ConfigureAwait(false); 200ctx.CancellationToken).ConfigureAwait(false); 206await ConfirmDestroyAsync(ctx, $"Uninstall Helm release '{savedReleaseName}' from namespace '{@namespace}'? This action cannot be undone.").ConfigureAwait(false); 212await HelmVersionValidator.EnsureMinimumVersionAsync(helmRunner, ctx.CancellationToken).ConfigureAwait(false); 213await HelmUninstallAsync(ctx, environment, savedReleaseName, @namespace).ConfigureAwait(false); 219await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false); 263await ResolveAndWriteDeployValuesAsync(outputPath, environment, context.CancellationToken).ConfigureAwait(false); 268context.CancellationToken).ConfigureAwait(false); 275context.CancellationToken).ConfigureAwait(false); 363await File.WriteAllTextAsync(overrideFilePath, overrideContent, cancellationToken).ConfigureAwait(false); 488await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 493context.CancellationToken).ConfigureAwait(false); 501context.CancellationToken).ConfigureAwait(false); 582await HelmUninstallAsync(context, environment, releaseName, @namespace).ConfigureAwait(false); 620context.CancellationToken).ConfigureAwait(false); 628context.CancellationToken).ConfigureAwait(false);
KubernetesEnvironmentContext.cs (1)
27await serviceResource.ProcessResourceAsync(this, executionContext, cancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (13)
516await ProcessIngressResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false); 519await ProcessGatewayResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false); 522await ProcessPersistentVolumeResources(appModel, context.CancellationToken).ConfigureAwait(false); 954await BuildGatewayObjects(gatewayResource, deploymentTargets, logger, cancellationToken).ConfigureAwait(false); 1394context).ConfigureAwait(false); 1451await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false); 1500gatewayName, @namespace, environment, context).ConfigureAwait(false); 1564await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false); 1565await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false); 1897await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false); 2078await File.WriteAllTextAsync(manifestPath, minimal.ToJsonString(), context.CancellationToken).ConfigureAwait(false); 2201await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false); 2202await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false);
KubernetesHelmChartExtensions.cs (2)
380await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 444await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
KubernetesPublishingContext.cs (17)
65await WriteKubernetesOutputAsync(model, environment).ConfigureAwait(false); 97await dockerfileBuildAnnotation.EmitDockerfileArtifactsAsync(dockerfileContext, resourceDockerfilePath).ConfigureAwait(false); 114await WriteKubernetesTemplatesForResource(resource, serviceResource.GetTemplatedResources()).ConfigureAwait(false); 115await AppendResourceContextToHelmValuesAsync(resource, serviceResource).ConfigureAwait(false); 124await WriteKubernetesTemplatesForResource(ingressResource, [generatedIngress]).ConfigureAwait(false); 135await WriteKubernetesTemplatesForResource(gatewayResource, gatewayObjects).ConfigureAwait(false); 144await WriteKubernetesTemplatesForResource(volumeResource, [generatedClaim]).ConfigureAwait(false); 148await WriteKubernetesHelmChartAsync(environment).ConfigureAwait(false); 157await WriteKubernetesHelmValuesAsync().ConfigureAwait(false); 206await AddValuesToHelmSectionAsync(resource, parameterItems, HelmExtensions.ParametersKey).ConfigureAwait(false); 207await AddValuesToHelmSectionAsync(resource, configItems, HelmExtensions.ConfigKey).ConfigureAwait(false); 208await AddValuesToHelmSectionAsync(resource, secretItems, HelmExtensions.SecretsKey).ConfigureAwait(false); 378await writer.WriteLineAsync(HelmExtensions.TemplateFileSeparator).ConfigureAwait(false); 379await writer.WriteAsync(yaml).ConfigureAwait(false); 404await File.WriteAllTextAsync(outputFile, valuesYaml, cancellationToken).ConfigureAwait(false); 409await ResolveHelmChartMetadataAsync(environment).ConfigureAwait(false); 426await File.WriteAllTextAsync(outputFile, chartYaml, cancellationToken).ConfigureAwait(false);
KubernetesResource.cs (5)
38Action = async ctx => await HelmDeploymentEngine.PrintResourceSummaryAsync(ctx, kubernetesEnvironmentResource, resource, this).ConfigureAwait(false), 225await ProcessEnvironmentAsync(context, executionContext, cancellationToken).ConfigureAwait(false); 226await ProcessArgumentsAsync(context, executionContext, cancellationToken).ConfigureAwait(false); 374await c.Callback(context).ConfigureAwait(false); 399await c.Callback(context).ConfigureAwait(false);
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
149await process.WaitForExitAsync().ConfigureAwait(false); 150await Task.WhenAll(stdoutComplete.Task, stderrComplete.Task).ConfigureAwait(false); 276await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false); 287await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Maui (13)
Lifecycle\MauiBuildQueueEventSubscriber.cs (7)
88}).ConfigureAwait(false); 90await semaphore.WaitAsync(resourceCts.Token).ConfigureAwait(false); 100}).ConfigureAwait(false); 102await RunBuildAsync(resource, logger, resourceCts.Token).ConfigureAwait(false); 194await process.WaitForExitAsync(token).ConfigureAwait(false); 212await Task.WhenAll(stdoutTask, stderrTask).ConfigureAwait(false); 434}).ConfigureAwait(false);
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
37}).ConfigureAwait(false);
MauiPlatformHelper.cs (1)
191await Task.CompletedTask.ConfigureAwait(false);
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
122}).ConfigureAwait(false);
Utilities\MauiEnvironmentHelper.cs (2)
76await File.WriteAllTextAsync(targetsFilePath, targetsContent, Encoding.UTF8, cancellationToken).ConfigureAwait(false); 252await File.WriteAllTextAsync(targetsFilePath, targetsContent, Encoding.UTF8, cancellationToken).ConfigureAwait(false);
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
122}).ConfigureAwait(false);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
856await base.RunBuildAsync(resource, logger, cancellationToken).ConfigureAwait(false); 868await tcs.Task.ConfigureAwait(false);
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
65await sqlConnection.OpenAsync(ct).ConfigureAwait(false); 74await CreateDatabaseAsync(sqlConnection, sqlDatabase, @event.Services, ct).ConfigureAwait(false);
Aspire.Hosting.MySql.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.OpenAI (4)
OpenAIExtensions.cs (4)
88}).ConfigureAwait(false); 92.ConfigureAwait(false); 134}).ConfigureAwait(false); 137.ConfigureAwait(false);
Aspire.Hosting.OpenAI.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Orleans.Tests (1)
OrleansProviderTypeTests.cs (1)
125await callback.Callback(context).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
83await npgsqlConnection.OpenAsync(ct).ConfigureAwait(false); 94await CreateDatabaseAsync(npgsqlConnection, postgreDatabase, @event.Services, ct).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.RabbitMQ.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Radius (22)
Publishing\RadCredentialRegisterStep.cs (2)
102await RunRadAsync(args, entry.SecretArgFlagSet, logger, cancellationToken).ConfigureAwait(false); 304await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Publishing\RadiusBicepPublishingContext.cs (3)
97await File.WriteAllTextAsync(bicepPath, bicepContent, cancellationToken).ConfigureAwait(false); 98await File.WriteAllTextAsync(configPath, bicepConfigContent, cancellationToken).ConfigureAwait(false); 112cancellationToken: cancellationToken).ConfigureAwait(false);
Publishing\RadiusDeploymentPipelineStep.cs (4)
68await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 195await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 234cancellationToken: cancellationToken).ConfigureAwait(false); 290cancellationToken).ConfigureAwait(false);
Publishing\RadiusInfrastructureBuilder.cs (6)
1131await callback.Callback(context).ConfigureAwait(false); 1155await ResolveEnvPartsAsync(rawValue, resource, parts).ConfigureAwait(false); 1212await ResolveEnvPartsAsync(connectionStringReference.Resource.ConnectionStringExpression, owner, parts).ConfigureAwait(false); 1215await ResolveEnvPartsAsync(resourceWithConnectionString.ConnectionStringExpression, owner, parts).ConfigureAwait(false); 1218await ResolveReferenceExpressionPartsAsync(referenceExpression, owner, parts).ConfigureAwait(false); 1258await ResolveEnvPartsAsync(expression.ValueProviders[i], owner, inner).ConfigureAwait(false);
Publishing\SealedSecretApplyStep.cs (7)
70await EnsureKubectlAsync(cancellationToken).ConfigureAwait(false); 87kubeContext, logger, cancellationToken).ConfigureAwait(false); 139cancellationToken).ConfigureAwait(false); 308await Task.Delay(remaining < interval ? remaining : interval, cancellationToken).ConfigureAwait(false); 855await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 946await process.StandardInput.BaseStream.FlushAsync(cancellationToken).ConfigureAwait(false); 954await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Radius.Tests (1)
Secrets\SealedSecretApplyStepTests.cs (1)
507await Task.Delay(Timeout.Infinite, ct).ConfigureAwait(false);
Aspire.Hosting.RemoteHost (9)
Ats\CapabilityDispatcher.cs (2)
647await task.ConfigureAwait(false); 664await boxedTask.ConfigureAwait(false);
JsonRpcServer.cs (6)
61await StartNamedPipeServerAsync(activity, stoppingToken).ConfigureAwait(false); 65await StartUnixSocketServerAsync(activity, stoppingToken).ConfigureAwait(false); 112await pipeServer.WaitForConnectionAsync(cancellationToken).ConfigureAwait(false); 129await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 191await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 249await jsonRpc.Completion.ConfigureAwait(false);
RemoteHostServer.cs (1)
43await host.RunAsync().ConfigureAwait(false);
Aspire.Hosting.RemoteHost.Tests (2)
tests\Shared\TestInteractionService.cs (2)
99await workTask.ConfigureAwait(false); 108await workTask.ConfigureAwait(false);
Aspire.Hosting.Rust (6)
CargoMetadataReader.cs (1)
106await process.WaitForExitAsync(timeoutSource.Token).ConfigureAwait(false);
RustDockerfileGenerator.cs (1)
178await annotation.Callback(new RustCargoArgsCallbackContext(resource, args, cancellationToken)).ConfigureAwait(false);
RustHostingExtensions.cs (4)
103await annotation.Callback(new RustCargoArgsCallbackContext(resource, cargoArgs, context.CancellationToken)).ConfigureAwait(false); 834await RustDockerfileGenerator.WriteAsync(resource, callbackContext).ConfigureAwait(false); 845await dockerfileBuilder.WriteAsync(writer, factoryContext.CancellationToken).ConfigureAwait(false); 846await writer.FlushAsync(factoryContext.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Rust.Tests (1)
FakeCargoMetadataReader.cs (1)
54await onRead(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.SqlServer (4)
SqlServerBuilderExtensions.cs (4)
81await sqlConnection.OpenAsync(ct).ConfigureAwait(false); 90await CreateDatabaseAsync(sqlConnection, sqlDatabase, @event.Services, ct).ConfigureAwait(false); 298await ExecuteBatchAsync(batch, batchNumber, count, ct).ConfigureAwait(false); 320await ExecuteBatchAsync(batch, batchNumber, 1, ct).ConfigureAwait(false);
Aspire.Hosting.Testing (12)
DistributedApplicationFactory.cs (7)
73await _startedTcs.Task.WaitAsync(linkedCts.Token).ConfigureAwait(false); 505await _exitTcs.Task.WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 518await app.StopAsync().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 527await app.DisposeAsync().AsTask().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 585await asyncDisposable.DisposeAsync().AsTask().WaitAsync(appFactory._disposingCts.Token).ConfigureAwait(false); 598await innerHost.StartAsync(linkedToken.Token).ConfigureAwait(false); 612await innerHost.StopAsync(cancellationToken).ConfigureAwait(false);
DistributedApplicationTestingBuilder.cs (5)
567await _host.RunAsync(cancellationToken).ConfigureAwait(false); 574await _host.StartAsync(cancellationToken).ConfigureAwait(false); 579await _host.StopAsync(cancellationToken).ConfigureAwait(false); 599await appFactory.StartAsync(cancellationToken).ConfigureAwait(false); 604await appFactory.DisposeAsync().AsTask().WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Testing.Tests (3)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
114}, resourceName, cancellationToken).ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Tests (18)
Backchannel\GetTerminalInfoAsyncTests.cs (3)
343await host.StartAsync().ConfigureAwait(false); 434try { await rpc.Completion.ConfigureAwait(false); } 446try { await _acceptLoop.ConfigureAwait(false); } catch { }
Dcp\DcpExecutorTests.cs (5)
2795await releasePreviousBatch.Task.ConfigureAwait(false); 3997await releaseSubscriber.Task.WaitAsync(ct).ConfigureAwait(false); 9421await Task.Delay(10, context.CancellationToken).ConfigureAwait(false); 9482await Task.Delay(10, context.CancellationToken).ConfigureAwait(false); 9490await Task.Delay(10, context.CancellationToken).ConfigureAwait(false);
Dcp\KubernetesServiceTests.cs (2)
471await app.StartAsync(cancellationToken).ConfigureAwait(false); 482await _app.StopAsync().ConfigureAwait(false);
Pipelines\DistributedApplicationPipelineTests.cs (3)
794await failingStepStarted.Task.ConfigureAwait(false); 825await failingStepCompleted.Task.ConfigureAwait(false); 864await failingStepCompleted.Task.ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
tests\Shared\TestInteractionService.cs (2)
99await workTask.ConfigureAwait(false); 108await workTask.ConfigureAwait(false);
Utils\PeriodicRestartAsyncEnumerableTests.cs (1)
65await Task.Delay(delay, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.TestUtilities (3)
Helpers\JsonDocumentManifestPublisher.cs (2)
28await WriteManifestAsync(model, writer, cancellationToken).ConfigureAwait(false); 86await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false);
Utils\LoggerNotificationExtensions.cs (1)
114}, resourceName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
ConformanceTests.cs (2)
97Task.Delay(1000).ConfigureAwait(false).GetAwaiter().GetResult(); 98service.Refreshers.First().RefreshAsync().ConfigureAwait(false).GetAwaiter().GetResult();
Aspire.Playground.Tests (3)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
114}, resourceName, cancellationToken).ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Templates.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (4)
369await WaitForDashboardToBeAvailableAsync(dashboardUrlToUse, _testOutput, cts.Token).ConfigureAwait(false); 429await AppHostProcess.WaitForExitAsync(token).ConfigureAwait(false); 443await DumpDockerInfoAsync(new TestOutputWrapper(null)).ConfigureAwait(false); 444await StopAppHostAsync().ConfigureAwait(false);
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
159await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Aspire.TerminalHost (28)
DcpUpstreamAdapter.cs (9)
105await EnsureConnectedAsync(ct).ConfigureAwait(false); 142await _connectedTcs.Task.WaitAsync(ct).ConfigureAwait(false); 150await WriteFrameAsync(FrameInput, data, ct).ConfigureAwait(false); 186await WriteFrameAsync(FrameResize, payload, ct).ConfigureAwait(false); 196await _connectLock.WaitAsync(ct).ConfigureAwait(false); 268await WriteFrameAsync(FrameResize, payload, _disposeCts.Token).ConfigureAwait(false); 287await _writeLock.WaitAsync(ct).ConfigureAwait(false); 483await _disposeCts.CancelAsync().ConfigureAwait(false); 494await pump.WaitAsync(TimeSpan.FromSeconds(2)).ConfigureAwait(false);
src\Shared\ParentProcessLivenessMonitor.cs (2)
92await onParentExited(stopToken).ConfigureAwait(false); 124await _monitorTask.ConfigureAwait(false);
src\Shared\ParentProcessWatchdog.cs (2)
120await forceExitTask.ConfigureAwait(false); 128await Task.Delay(forceExitGracePeriod, stopToken).ConfigureAwait(false);
TerminalHostApp.cs (8)
130await _controlListener.StartAsync().ConfigureAwait(false); 142await WaitForShutdownAsync(replicaRun, token).ConfigureAwait(false); 173await TearDownAsync().ConfigureAwait(false); 244await TearDownAsync().ConfigureAwait(false); 262.ConfigureAwait(false); 288.ConfigureAwait(false); 360await host.StartAsync(cancellationToken).ConfigureAwait(false); 404await host.StopAsync(stopCts.Token).ConfigureAwait(false);
TerminalHostControlListener.cs (3)
244await rpc.Completion.WaitAsync(cancellationToken).ConfigureAwait(false); 288await _disposeCts.CancelAsync().ConfigureAwait(false); 303await _acceptLoop.ConfigureAwait(false);
TerminalReplica.cs (4)
342await Task.Delay(delay, ct).ConfigureAwait(false); 538await _stopCts.CancelAsync().ConfigureAwait(false); 544await _runTask.ConfigureAwait(false); 596await Task.Delay(10, ct).ConfigureAwait(false);
Aspire.TerminalHost.Tests (14)
TerminalHostAppTests.cs (12)
574await SendFrameAsync(FrameHello, System.Text.Encoding.UTF8.GetBytes(json), ct).ConfigureAwait(false); 605await ReadExactlyAsync(header, ct).ConfigureAwait(false); 617await ReadExactlyAsync(payload, ct).ConfigureAwait(false); 650await _stream.FlushAsync(ct).ConfigureAwait(false); 677await socket.ConnectAsync(new UnixDomainSocketEndPoint(socketPath)).ConfigureAwait(false); 684await Task.Delay(50).ConfigureAwait(false); 722await socket.ConnectAsync(new UnixDomainSocketEndPoint(socketPath)).ConfigureAwait(false); 729await Task.Delay(50).ConfigureAwait(false); 741await SendFrameAsync(FrameClientHello, System.Text.Encoding.UTF8.GetBytes(json), ct).ConfigureAwait(false); 747await SendFrameAsync(FrameRequestPrimary, System.Text.Encoding.UTF8.GetBytes(json), ct).ConfigureAwait(false); 763await _stream.FlushAsync(ct).ConfigureAwait(false); 787await Task.Delay(25).ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.TestTools (3)
GitHubCli.cs (3)
73cancellationToken).ConfigureAwait(false); 273await process.WaitForExitAsync(cts.Token).ConfigureAwait(false); 326await Task.WhenAll(process.WaitForExitAsync(cts.Token), stdoutTask, stderrTask).ConfigureAwait(false);
Binding.Tcp.IntegrationTests (1)
NetTcpBindingTests.4.0.0.cs (1)
108await serviceProxy.EchoReturnTaskAsync().ConfigureAwait(false);
cdac-build-tool (1)
ComposeCommand.cs (1)
91await writer.FlushAsync(token).ConfigureAwait(false);
csc (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
dotnet (14)
Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
74await Task.WhenAll(manifests.Select(manifest => UpdateAdvertisingManifestAsync(manifest, includePreviews, offlineCache))).ConfigureAwait(false); 87ShouldUseWorkloadSetMode(_sdkFeatureBand, _userProfileDir)).ConfigureAwait(false);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26430.105\contentFiles\cs\net11.0\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26430.105\contentFiles\cs\net11.0\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
74await Task.WhenAll(manifests.Select(manifest => UpdateAdvertisingManifestAsync(manifest, includePreviews, offlineCache))).ConfigureAwait(false); 87ShouldUseWorkloadSetMode(_sdkFeatureBand, _userProfileDir)).ConfigureAwait(false);
dotnet-svcutil-lib (132)
Bootstrapper\SvcutilBootstrapper.cs (5)
80await GenerateProjectAsync(keepBootstrapperDir, logger, cancellationToken).ConfigureAwait(false); 81await GenerateProgramFileAsync(logger, cancellationToken).ConfigureAwait(false); 85await BuildBootstrapProjectAsync(logger, cancellationToken).ConfigureAwait(false); 154await this.MSBuildProj.SaveAsync(logger, cancellationToken).ConfigureAwait(false); 181await AsyncHelper.RunAsync(() => this.Options.Save(paramsFilePath), cancellationToken).ConfigureAwait(false);
CommandProcessorOptions.cs (22)
207await ProcessProjectFileOptionAsync(cancellationToken).ConfigureAwait(false); 212await ProcessUpdateOptionAsync(cancellationToken).ConfigureAwait(false); 215await ProcessOutputDirOptionAsync(this.Project?.DirectoryPath, cancellationToken).ConfigureAwait(false); 220await ProcessBootstrapDirOptionAsync(cancellationToken).ConfigureAwait(false); 223await ProcessNamespaceMappingsOptionAsync(cancellationToken).ConfigureAwait(false); 226await ProcessInputsAsync(cancellationToken).ConfigureAwait(false); 229await ProcessTargetFrameworkOptionAsync(cancellationToken).ConfigureAwait(false); 234await ProcessReferencesOptionAsync(cancellationToken).ConfigureAwait(false); 239await ProcessReferenceAssembliesAsync(cancellationToken).ConfigureAwait(false); 292await safeLogger.WriteMessageAsync($"Tool context: {this.ToolContext}", logToUI: false).ConfigureAwait(false); 309await safeLogger.WriteMessageAsync($"Resetting unexpected option '{InputsKey}' ...", logToUI: false).ConfigureAwait(false); 316await safeLogger.WriteMessageAsync($"Resetting unexpected option '{option.Name}' ...", logToUI: false).ConfigureAwait(false); 371await logger.WriteMessageAsync($"{ProjectFileKey}:\"{projectFile}\"", logToUI: false).ConfigureAwait(false); 393await ProcessOutputFileOptionAsync(defaultDir, cancellationToken).ConfigureAwait(false); 407await logger.WriteMessageAsync($"{OutputDirKey}:\"{this.OutputDir}\"", logToUI: false).ConfigureAwait(false); 465await logger.WriteMessageAsync($"{OutputFileKey}:\"{filePath}\"", logToUI: false).ConfigureAwait(false); 566await logger.WriteMessageAsync($"Update option read from \"{paramsFilePath}\" ...", logToUI: false).ConfigureAwait(false); 589await logger.WriteMessageAsync($"{BootstrapPathKey}:\"{this.BootstrapPath}\"", logToUI: false).ConfigureAwait(false); 625await logger.WriteMessageAsync(Shared.Resources.ResolvingProjectReferences, logToUI: this.ToolContext <= OperationalContext.Global).ConfigureAwait(false); 713await SetupBootstrappingDirectoryAsync(logger, cancellationToken).ConfigureAwait(false); 743await safeLogger.WriteMessageAsync($"resolved inputs: {inputFiles.Count()}", logToUI: false).ConfigureAwait(false); 1035await RuntimeEnvironmentHelper.TryCopyingConfigFiles(workingDirectory, this.BootstrapPath.FullName, logger, cancellationToken).ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\AsyncHelper.cs (6)
45await task.ConfigureAwait(false); 53await task.ConfigureAwait(false); 61await task.ConfigureAwait(false); 79await task.ConfigureAwait(false); 80await func().ConfigureAwait(false); 97await task.ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
39await FinishReadBinaryAsync().ConfigureAwait(false); 433await _readBinaryHelper.FinishAsync().ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (4)
92await FinishReadElementContentAsXxxAsync().ConfigureAwait(false); 104await FinishReadElementContentAsXxxAsync().ConfigureAwait(false); 116await FinishReadElementContentAsXxxAsync().ConfigureAwait(false); 220await this.WriteNodeAsync(xtw, false).ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (4)
128await reader.SkipAsync().ConfigureAwait(false); 144await reader.SkipAsync().ConfigureAwait(false); 167await SkipAsync().ConfigureAwait(false); 175await SkipAsync().ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (7)
247await ProcessReaderEventAsync().ConfigureAwait(false); 276await task.ConfigureAwait(false); 356await _coreReader.SkipAsync().ConfigureAwait(false); 537await _inlineSchemaParser.StartParsingAsync(_coreReader, null).ConfigureAwait(false); 599await ProcessEndElementEventAsync().ConfigureAwait(false); 616await _cachingReader.SetToReplayModeAsync().ConfigureAwait(false); 833await ProcessReaderEventAsync().ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
20await StartParsingAsync(reader, targetNamespace).ConfigureAwait(false);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (9)
354await FlushBase64Async().ConfigureAwait(false); 396await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 531await _writer.WriteStartElementAsync(prefix, localName).ConfigureAwait(false); 536await FlushBase64Async().ConfigureAwait(false); 537await AutoCompleteAsync(WriteState.Element).ConfigureAwait(false); 671await FlushElementAsync().ConfigureAwait(false); 739await EndStartElementAsync().ConfigureAwait(false); 1541await StartContentAsync().ConfigureAwait(false); 1542await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, _trailBytes, 0, 0).ConfigureAwait(false);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (5)
122await FlushBufferAsync().ConfigureAwait(false); 170await FlushBufferAsync().ConfigureAwait(false); 216await FlushBufferAsync().ConfigureAwait(false); 515await FlushBufferAsync().ConfigureAwait(false); 516await _stream.FlushAsync().ConfigureAwait(false);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextWriter.cs (10)
226await WriteByteAsync('<').ConfigureAwait(false); 231await WriteByteAsync(':').ConfigureAwait(false); 270await WriteByteAsync('>').ConfigureAwait(false); 274await WriteBytesAsync('/', '>').ConfigureAwait(false); 292await WriteBytesAsync('<', '/').ConfigureAwait(false); 296await WriteByteAsync(':').ConfigureAwait(false); 299await WriteByteAsync('>').ConfigureAwait(false); 398await WriteByteAsync('"').ConfigureAwait(false); 748await InternalWriteBase64TextAsync(trailBytes, 0, trailByteCount).ConfigureAwait(false); 751await InternalWriteBase64TextAsync(buffer, offset, count).ConfigureAwait(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (10)
178await _sem.WaitAsync().ConfigureAwait(false); 183await FlushWriteAsync(cancellationToken).ConfigureAwait(false); 189await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 215await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 217await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 457await semaphoreLockTask.ConfigureAwait(false); 485await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 508await _stream.WriteAsync(_buffer, 0, totalUserBytes, cancellationToken).ConfigureAwait(false); 513await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 518await _stream.WriteAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
Metadata\MetadaExchangeResolver.cs (1)
228await loader.LoadFromStreamAsync(stream, baseUri, string.Empty, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentLoader.cs (10)
184await LoadAsync(this.MetadataSourceUrl.AbsoluteUri, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 190await LoadAsync(fileUri.LocalPath, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 223await LoadFromStreamAsync(fileStream, fileInfo.FullName, fileInfo.DirectoryName, cancellationToken).ConfigureAwait(false); 297await LoadAsXmlSchemaAsync(reader, uri, basePath, cancellationToken).ConfigureAwait(false); 300await LoadAsWsdlAsync(reader, uri, basePath, cancellationToken).ConfigureAwait(false); 306await LoadAsEPRAsync(reader, cancellationToken).ConfigureAwait(false); 326await LoadAsXmlSchemaIncludesAsync(schema, uri, basePath, cancellationToken).ConfigureAwait(false); 364await LoadAsXmlSchemaIncludesAsync(schema, wsdl.RetrievalUrl, basePath, cancellationToken).ConfigureAwait(false); 380await LoadAsync(schemaUri.LocalPath, baseUrl, basePath, cancellationToken).ConfigureAwait(false); 389await LoadFromStreamAsync(stream, schemaUri.AbsoluteUri, basePath, cancellationToken).ConfigureAwait(false);
Metadata\ServiceDescriptor.cs (4)
90await ImportMetadataAsync(null, null, null, cancellationToken).ConfigureAwait(false); 145await this.metadataDocumentLoader.LoadAsync(cancellationToken).ConfigureAwait(false); 163}, cancellationToken).ConfigureAwait(false); 227await ImportMetadataAsync(cancellationToken).ConfigureAwait(false);
Shared\MSBuildProj.cs (13)
687await SaveAsync(logger, cancellationToken).ConfigureAwait(false); 708await AsyncHelper.RunAsync(() => ProjectNode.Save(writer), cancellationToken).ConfigureAwait(false); 722await this.SaveAsync(logger, cancellationToken).ConfigureAwait(false); 778await safeLogger.WriteWarningAsync(Shared.Resources.WarningMultiFxOrNoSupportedDnxVersion, logToUI: true).ConfigureAwait(false); 782await safeLogger.WriteMessageAsync($"Resolved project reference count: {dependencies.Count()}", logToUI: false).ConfigureAwait(false); 844await safeLogger.WriteWarningAsync(Shared.Resources.WarningMultiFxOrNoSupportedDnxVersion, logToUI: true).ConfigureAwait(false); 849await safeLogger.WriteWarningAsync(Shared.Resources.WarningCannotResolveProjectReferences, logToUI: true).ConfigureAwait(false); 856await safeLogger.WriteWarningAsync(ex.Message, logToUI: false).ConfigureAwait(false); 860await safeLogger.WriteMessageAsync($"Package reference count: {packageDependencies.Count}", logToUI: false).ConfigureAwait(false); 937await safeLogger.WriteWarningAsync(ex.Message, logToUI: false).ConfigureAwait(false); 945await safeLogger.WriteWarningAsync("Deps file not found (project not built), unable to resolve assembly/project dependencies!", logToUI: false).ConfigureAwait(false); 948await safeLogger.WriteMessageAsync($"Assembly reference count: {assemblyDependencies.Count}", logToUI: false).ConfigureAwait(false); 1018await safeLogger.WriteMessageAsync($"deps file: {depsFile}", logToUI: false).ConfigureAwait(false);
Shared\ProjectPropertyResolver.cs (5)
62await safeLogger.WriteMessageAsync($"Evaluated '{propertyName}={propertyValue}'", logToUI: false).ConfigureAwait(false); 70await safeLogger.WriteMessageAsync(ex.Message, logToUI: false).ConfigureAwait(false); 79await safeLogger.WriteMessageAsync($"Resolved '{propertyName}={propertyValue}'", logToUI: false).ConfigureAwait(false); 130await safeLogger.WriteMessageAsync($"dotnet sdk version:{s_sdkVersion}", logToUI: false).ConfigureAwait(false); 163await safeLogger.WriteMessageAsync($"SDK path: \"{s_sdkPath}\"", logToUI: false).ConfigureAwait(false);
Shared\Utilities\AsyncHelper.cs (1)
18await RunAsync(action, null, cancellationToken).ConfigureAwait(false);
Shared\Utilities\PathHelper.cs (3)
221await safeLogger.WriteErrorAsync(ex.Message, logToUI: false).ConfigureAwait(false); 269await safeLogger.WriteMessageAsync($"Error: {ex.Message}", logToUI: false).ConfigureAwait(false); 272await safeLogger.WriteMessageAsync($"Item found: {!string.IsNullOrEmpty(fullPath)}", logToUI: false).ConfigureAwait(false);
Shared\Utilities\ProcessRunner.cs (4)
97safeLogger.WriteErrorAsync(e.Data, false).ConfigureAwait(false); 105safeLogger.WriteMessageAsync(e.Data, false).ConfigureAwait(false); 128await AsyncHelper.RunAsync(() => proc.WaitForExit(), () => { try { proc.Kill(); } catch { } }, cancellationToken).ConfigureAwait(false); 145await safeLogger.WriteMessageAsync($"Exit code: {proc.ExitCode}", false).ConfigureAwait(false);
Tool.cs (6)
116await options.ResolveAsync(cancellationToken).ConfigureAwait(false); 131await options.SetupBootstrappingDirectoryAsync(options.Logger, cancellationToken).ConfigureAwait(false); 230cancellationToken).ConfigureAwait(false); 286await project.SaveAsync(options.Logger, cancellationToken).ConfigureAwait(false); 315await AsyncHelper.RunAsync(() => updateOptions.Save(paramsFile), cancellationToken).ConfigureAwait(false); 395await options.Logger.WriteErrorAsync(exMsg, logToUI: false).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (32)
Program.cs (11)
277await Console.Error.WriteLineAsync($"'{path}' does not exist".AsMemory(), cancellationToken).ConfigureAwait(false); 378await Console.Out.WriteLineAsync($"Failed to create analyzer rules missing documentation file. Http response timed out".AsMemory(), cancellationToken).ConfigureAwait(false); 384await Console.Error.WriteLineAsync("One or more auto-generated documentation files were either edited manually, or not updated. Please revert changes made to the following files (if manually edited) and run `dotnet msbuild /t:pack` at the root of the repo to automatically update them:".AsMemory(), cancellationToken).ConfigureAwait(false); 821await Console.Error.WriteLineAsync($"Missing entry in {fileWithPath}".AsMemory(), cancellationToken).ConfigureAwait(false); 822await Console.Error.WriteLineAsync(line.AsMemory(), cancellationToken).ConfigureAwait(false); 877await Console.Error.WriteLineAsync($"'{assemblyPath}' does not exist".AsMemory(), cancellationToken).ConfigureAwait(false); 889await Console.Error.WriteLineAsync(ex.Message.AsMemory(), cancellationToken).ConfigureAwait(false); 915await Console.Error.WriteLineAsync($"Expected both '{shippedFile}' and '{unshippedFile}' to exist or not exist, but '{existingFile}' exists and '{nonExistingFile}' does not exist.".AsMemory(), cancellationToken).ConfigureAwait(false); 925await Console.Error.WriteLineAsync($"'{shippedFile}' exists but was not expected".AsMemory(), cancellationToken).ConfigureAwait(false); 954await Console.Error.WriteLineAsync(ex.Message.AsMemory(), cancellationToken).ConfigureAwait(false); 962await Console.Error.WriteLineAsync($"Could not find any 'AnalyzerReleases.Shipped.md' file".AsMemory(), cancellationToken).ConfigureAwait(false);
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
86await editAsync(editor).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
83model, container, namespaceSymbols, conflicts, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).ConfigureAwait(false); 178ReduceOneNodeOrTokenAsync).ConfigureAwait(false);
ILCompiler.DependencyAnalysisFramework (2)
src\runtime\src\coreclr\tools\Common\Sorting\MergeSortCore.cs (2)
46await MergeSortCore<T, T[], ArrayAccessor<T>, TComparer, TCompareAsEqualAction>.ParallelSort(localCopyOfHalfOfArray, 0, halfLen, comparer).ConfigureAwait(false); 47await rightSortTask.ConfigureAwait(false);
Infrastructure.Tests (9)
CreateFailingTestIssue\CreateFailingTestIssueFixture.cs (2)
25await BuildToolAsync(ToolProjectPath).ConfigureAwait(false); 51await process.WaitForExitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (1)
656await process.WaitForExitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (1)
112await process.WaitForExitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
GenerateTestSummary\GenerateTestSummaryFixture.cs (1)
44await process.WaitForExitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
GenerateTestSummary\GenerateTestSummaryToolTests.cs (1)
273await process.WaitForExitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
PowerShellScripts\PowerShellCommand.cs (1)
139await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
tools\GenerateCITimeline\GitHubApi.cs (1)
24await process.WaitForExitAsync().ConfigureAwait(false);
WorkflowScripts\NodeCommand.cs (1)
131await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
TestCommand.cs (2)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false); 103await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
Microsoft.Analyzers.Extra.Tests (1)
RoslynTestUtils.cs (1)
351await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Analyzers.Local.Tests (1)
RoslynTestUtils.cs (1)
352await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.AspNetCore.Authorization (4)
AuthorizationHandler.cs (2)
24await HandleRequirementAsync(context, req).ConfigureAwait(false); 55await HandleRequirementAsync(context, req, resource).ConfigureAwait(false);
DefaultAuthorizationService.cs (1)
70await handler.HandleAsync(authContext).ConfigureAwait(false);
PassThroughAuthorizationHandler.cs (1)
39await handler.HandleAsync(context).ConfigureAwait(false);
Microsoft.AspNetCore.Components (1)
Rendering\RendererSynchronizationContext.cs (1)
127await state.asyncAction().ConfigureAwait(false);
Microsoft.AspNetCore.Components.Testing (30)
Infrastructure\ParentProcessWatcher.cs (1)
43await Task.Delay(1000, stoppingToken).ConfigureAwait(false);
Infrastructure\PlaywrightExtensions.cs (3)
160]).ConfigureAwait(false); 211await navigationAction().ConfigureAwait(false); 212await navTask.ConfigureAwait(false);
Infrastructure\ReadinessNotificationService.cs (1)
66await Task.Delay(delay).ConfigureAwait(false);
Infrastructure\RemoteLock.cs (1)
47public async ValueTask DisposeAsync() => await ReleaseAsync().ConfigureAwait(false);
Infrastructure\ResourceLock.cs (4)
64await route.ContinueAsync().ConfigureAwait(false); 90await _heldRoute.ContinueAsync().ConfigureAwait(false); 92await _page.UnrouteAsync(_urlPattern).ConfigureAwait(false); 96public async ValueTask DisposeAsync() => await ReleaseAsync().ConfigureAwait(false);
Infrastructure\ServerFactory.cs (4)
142await _proxyApp.StartAsync().ConfigureAwait(false); 162await _startLock.WaitAsync().ConfigureAwait(false); 192await instance.LaunchAsync(appEntry, options, _testAssemblyLocation, _testAssemblyName, readyUrl, readyTcs.Task).ConfigureAwait(false); 266await _proxyApp.StopAsync().ConfigureAwait(false);
Infrastructure\ServerInstance.cs (2)
110await Task.Delay(100).ConfigureAwait(false); 137await _process.WaitForExitAsync().ConfigureAwait(false);
Infrastructure\TestInfrastructureStartupFilter.cs (2)
41await context.Response.WriteAsync("Missing 'key' query parameter.").ConfigureAwait(false); 53await nextMiddleware().ConfigureAwait(false);
Infrastructure\TestLockClient.cs (1)
45await context.SetTestSession(server, sessionId).ConfigureAwait(false);
Infrastructure\TracedContext.cs (1)
67await Context.CloseAsync().ConfigureAwait(false);
Infrastructure\TracingSession.cs (5)
73}).ConfigureAwait(false); 88await _context.Tracing.StopAsync(new() { Path = tracePath }).ConfigureAwait(false); 93await _context.Tracing.StopAsync().ConfigureAwait(false); // discard 100await _context.CloseAsync().ConfigureAwait(false); // flushes video to disk 126try { await page.Video.DeleteAsync().ConfigureAwait(false); }
Playwright\BrowserTest.cs (2)
57await s_browserInitLock.WaitAsync().ConfigureAwait(false); 116await base.InitializeCoreAsync().ConfigureAwait(false);
Playwright\ContextTest.cs (1)
31await base.InitializeCoreAsync().ConfigureAwait(false);
Playwright\PageTest.cs (1)
25await base.InitializeCoreAsync().ConfigureAwait(false);
Playwright\PlaywrightTest.cs (1)
41await s_initLock.WaitAsync().ConfigureAwait(false);
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\Core\src\TaskExtensions.cs (1)
36 await task.ConfigureAwait(false);
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Latency\CapturePipelineEntryMiddleware.cs (1)
28await _next(context).ConfigureAwait(false);
Latency\CapturePipelineExitMiddleware.cs (1)
34await _next(context).ConfigureAwait(false);
Latency\RequestLatencyTelemetryMiddleware.cs (2)
78await ExportAsync(latencyContext.LatencyData).ConfigureAwait(false); 96await Task.WhenAll(exports).ConfigureAwait(false);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Latency\AcceptanceTests.cs (1)
59await next.Invoke().ConfigureAwait(false);
Latency\ChecpointAcceptanceTests.cs (2)
47await next.Invoke().ConfigureAwait(false); 83await next.Invoke().ConfigureAwait(false);
Logging\AcceptanceTests.cs (4)
131await context.Request.Body.DrainAsync(default).ConfigureAwait(false); 135await context.Response.WriteAsync("Server: hello!").ConfigureAwait(false); 138await context.Response.WriteAsync("Server: world!").ConfigureAwait(false); 175await func(logCollector, client, host.Services).ConfigureAwait(false);
Microsoft.AspNetCore.Hosting (5)
Internal\WebHost.cs (5)
139await _hostedServiceExecutor.StartAsync(cancellationToken).ConfigureAwait(false); 147await Server.StartAsync(hostingApp, cancellationToken).ConfigureAwait(false); 299await Server.StopAsync(cancellationToken).ConfigureAwait(false); 305await _hostedServiceExecutor.StopAsync(cancellationToken).ConfigureAwait(false); 325await StopAsync().ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections.Client (29)
HttpConnection.cs (9)
212await StartAsyncCore(transferFormat, cancellationToken).ConfigureAwait(false); 226await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false); 239await SelectAndStartTransport(transferFormat, cancellationToken).ConfigureAwait(false); 262await DisposeAsyncCore().ConfigureAwait(false); 273await _connectionLock.WaitAsync().ConfigureAwait(false); 284await _transport!.StopAsync().ConfigureAwait(false); 325await StartTransport(uri, _httpConnectionOptions.Transports, transferFormat, cancellationToken, useStatefulReconnect: false).ConfigureAwait(false); 423await StartTransport(connectUrl, transportType, transferFormat, cancellationToken, negotiationResponse.UseStatefulReconnect).ConfigureAwait(false); 547await transport.StartAsync(connectUrl, transferFormat, cancellationToken).ConfigureAwait(false);
HttpConnectionFactory.cs (1)
66await connection.StartAsync(cancellationToken).ConfigureAwait(false);
Internal\LongPollingTransport.cs (5)
93await sending.ConfigureAwait(false); 106await receiving.ConfigureAwait(false); 109await SendDeleteRequest(url).ConfigureAwait(false); 127await Running.ConfigureAwait(false); 192await response.Content.CopyToAsync(applicationStream, cancellationToken).ConfigureAwait(false);
Internal\ServerSentEventsTransport.cs (3)
110await sending.ConfigureAwait(false); 122await receiving.ConfigureAwait(false); 191await Running.ConfigureAwait(false);
Internal\WebSocketsTransport.cs (11)
67await localNotifyOnReconnect(writer).ConfigureAwait(false); 68await notifyOnReconnect(writer).ConfigureAwait(false); 270await webSocket.ConnectAsync(url, invoker: _httpClient, cancellationToken).ConfigureAwait(false); 275await webSocket.ConnectAsync(url, cancellationToken).ConfigureAwait(false); 350await _notifyOnReconnect.Invoke(_transport!.Output).ConfigureAwait(false); 377await sending.ConfigureAwait(false); 398await receiving.ConfigureAwait(false); 410cancellationToken: default).ConfigureAwait(false); 602await socket.CloseOutputAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", _stopCts.Token).ConfigureAwait(false); 608await socket.CloseAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", _stopCts.Token).ConfigureAwait(false); 677await Running.ConfigureAwait(false);
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
366.ConfigureAwait(false); 588.ConfigureAwait(false);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
UserOnlyStore.cs (2)
637await SaveChanges(cancellationToken).ConfigureAwait(false); 719await SaveChanges(cancellationToken).ConfigureAwait(false);
UserStore.cs (2)
782await SaveChanges(cancellationToken).ConfigureAwait(false); 864await SaveChanges(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.InternalTesting (23)
HttpClientSlim.cs (10)
37await writer.WriteAsync($"GET {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false); 38await writer.WriteAsync($"Host: {GetHost(requestUri)}\r\n").ConfigureAwait(false); 39await writer.WriteAsync("\r\n").ConfigureAwait(false); 80await writer.WriteAsync($"POST {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false); 81await writer.WriteAsync($"Host: {requestUri.Authority}\r\n").ConfigureAwait(false); 82await writer.WriteAsync($"Content-Type: {content.Headers.ContentType}\r\n").ConfigureAwait(false); 83await writer.WriteAsync($"Content-Length: {content.Headers.ContentLength}\r\n").ConfigureAwait(false); 84await writer.WriteAsync("\r\n").ConfigureAwait(false); 87await content.CopyToAsync(stream).ConfigureAwait(false); 162checkCertificateRevocation: validateCertificate).ConfigureAwait(false);
src\aspnetcore\src\Shared\TaskExtensions.cs (2)
117await task.ConfigureAwait(false); 123await task.WaitAsync(timeout).ConfigureAwait(false);
xunit\AspNetTestAssemblyRunner.cs (5)
35await base.AfterTestAssemblyStartingAsync().ConfigureAwait(false); 79await asyncInit.InitializeAsync().ConfigureAwait(false); 82}).ConfigureAwait(false); 95await Aggregator.RunAsync(disposable.DisposeAsync).ConfigureAwait(false); 98await base.BeforeTestAssemblyFinishedAsync().ConfigureAwait(false);
xunit\AspNetTestCollectionRunner.cs (1)
35await base.AfterTestCollectionStartingAsync().ConfigureAwait(false);
xunit\AspNetTestInvoker.cs (4)
44await lifecycleHook.OnTestStartAsync(context, CancellationTokenSource.Token).ConfigureAwait(false); 46}).ConfigureAwait(false); 55await lifecycleHook.OnTestEndAsync(context, exception, CancellationTokenSource.Token).ConfigureAwait(false); 57}).ConfigureAwait(false);
xunit\AspNetTestRunner.cs (1)
97await Task.Delay(5000).ConfigureAwait(false);
Microsoft.AspNetCore.Mvc.Testing (3)
DeferredHostBuilder.cs (1)
154await _hostStartedTcs.Task.ConfigureAwait(false);
WebApplicationFactory.cs (2)
845.ConfigureAwait(false) 881await _host.StopAsync().ConfigureAwait(false);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
RedisOutputCacheStore.cs (2)
100await Task.Delay(TimeSpan.FromSeconds(secondsWithJitter)).ConfigureAwait(false); 326await _connectionLock.WaitAsync(token).ConfigureAwait(false);
Microsoft.AspNetCore.Server.HttpSys (3)
MessagePump.cs (3)
231await shutdownTask.ConfigureAwait(false); 245await _acceptLoopsCompleted.Task.ConfigureAwait(false); 250await _requestsDrained.Task.ConfigureAwait(false);
Microsoft.AspNetCore.Server.Kestrel.Core (21)
AnyIPListenOptions.cs (2)
26await base.BindAsync(context, cancellationToken).ConfigureAwait(false); 43await base.BindAsync(context, cancellationToken).ConfigureAwait(false);
Internal\AddressBinder.cs (4)
90await context.CreateBinding(endpoint, cancellationToken).ConfigureAwait(false); 179await httpDefault.BindAsync(context, cancellationToken).ConfigureAwait(false); 241await endpoint.BindAsync(context, cancellationToken).ConfigureAwait(false); 269await options.BindAsync(context, cancellationToken).ConfigureAwait(false);
Internal\Infrastructure\TransportManager.cs (4)
133await Task.WhenAll(tasks).ConfigureAwait(false); 153await Task.WhenAll(tasks).ConfigureAwait(false); 160await Task.WhenAll(tasks).ConfigureAwait(false); 187await AcceptLoopTask.ConfigureAwait(false);
Internal\KestrelServerImpl.cs (8)
229await BindAsync(cancellationToken).ConfigureAwait(false); 247await _stoppedTcs.Task.ConfigureAwait(false); 258await _bindSemaphore.WaitAsync().ConfigureAwait(false); 263await _transportManager.StopAsync(cancellationToken).ConfigureAwait(false); 292await _bindSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 313await AddressBinder.BindAsync(Options.GetListenOptions(), AddressBindContext!, _httpsConfigurationService.UseHttpsWithDefaults, cancellationToken).ConfigureAwait(false); 371await _transportManager.StopEndpointsAsync(configsToStop, cts.Token).ConfigureAwait(false); 392await listenOption.BindAsync(AddressBindContext!, _stopCts.Token).ConfigureAwait(false);
ListenOptions.cs (1)
224await AddressBinder.BindEndpointAsync(this, context, cancellationToken).ConfigureAwait(false);
LocalhostListenOptions.cs (2)
45await AddressBinder.BindEndpointAsync(v4Options, context, cancellationToken).ConfigureAwait(false); 59await AddressBinder.BindEndpointAsync(v6Options, context, cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (3)
Connection\DirectTlsConnection.cs (2)
441await _receiveTask.ConfigureAwait(false); 445await _sendTask.ConfigureAwait(false);
TlsEventPump.cs (1)
1366await _exitSignal.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Client.Core (59)
HubConnection.cs (55)
299await StartAsyncInner(cancellationToken).ConfigureAwait(false); 305await _state.WaitConnectionLockAsync(token: cancellationToken).ConfigureAwait(false); 322await StartAsyncCore(linkedToken).ConfigureAwait(false); 352await StopAsyncCore(disposing: false).ConfigureAwait(false); 368await StopAsyncCore(disposing: true).ConfigureAwait(false); 509await SendCoreAsyncCore(methodName, args, cancellationToken).ConfigureAwait(false); 556await HandshakeAsync(startingConnectionState, usedProtocolVersion, cancellationToken).ConfigureAwait(false); 576await SendHubMessage(startingConnectionState, PingMessage.Instance, cancellationToken).ConfigureAwait(false); 637Log.AuthenticationRefreshCallbackFailed).ConfigureAwait(false); 658Log.AuthenticationRefreshCallbackFailed).ConfigureAwait(false); 674await handler(argument).ConfigureAwait(false); 855await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 867await reconnectTask.ConfigureAwait(false); 868await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 945await connectionStateStopTask.ConfigureAwait(false); 1005await InvokeStreamCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false); 1170await SendStreamItemAsync(connectionState, streamId, enumerator.Current, tokenSource).ConfigureAwait(false); 1206await SendStreamItemAsync(connectionState, streamId, item, tokenSource).ConfigureAwait(false); 1221await SendStreamItemAsync(connectionState, streamId, streamValue, tokenSource).ConfigureAwait(false); 1230await SendWithLock(connectionState, new StreamItemMessage(streamId, item), tokenSource.Token).ConfigureAwait(false); 1243await createAndConsumeStream().ConfigureAwait(false); 1258await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 1265await SendHubMessage(connectionState, CompletionMessage.WithError(streamId, responseError), cancellationToken: default).ConfigureAwait(false); 1356await InvokeCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false); 1411await Task.WhenAll(streamTasks).ConfigureAwait(false); 1415await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 1423await SendHubMessage(_state.CurrentConnectionStateUnsynchronized, new CancelInvocationMessage(irq.InvocationId), cancellationToken: default).ConfigureAwait(false); 1462await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false); 1493await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false); 1556await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false); 1587await SendHubMessage(connectionState, message, cancellationToken).ConfigureAwait(false); 1615await SendWithLock(connectionState, CompletionMessage.WithError(bindingFailure.InvocationId, "Client failed to parse argument(s)."), cancellationToken: default).ConfigureAwait(false); 1644await DispatchInvocationStreamItemAsync(streamItem, irq).ConfigureAwait(false); 1670await connectionState.AckAsync(ackMessage).ConfigureAwait(false); 1693await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, "Client didn't provide a result."), cancellationToken: default).ConfigureAwait(false); 1724await task.ConfigureAwait(false); 1743await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, resultException.Message), cancellationToken: default).ConfigureAwait(false); 1747await SendWithLock(connectionState, CompletionMessage.WithResult(invocation.InvocationId!, result), cancellationToken: default).ConfigureAwait(false); 1752await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, "Client didn't provide a result."), cancellationToken: default).ConfigureAwait(false); 1936await invokeTask.ConfigureAwait(false); 2021await timerTask.ConfigureAwait(false); 2023await HandleConnectionClose(connectionState).ConfigureAwait(false); 2046await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 2102await InvokeEventHandlersAsync(closed, closeException, _logger, Log.ErrorDuringClosedEvent).ConfigureAwait(false); 2152await Task.Delay(nextRetryDelay.Value, _state.StopCts.Token).ConfigureAwait(false); 2158await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 2173await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 2179await StartAsyncCore(_state.StopCts.Token).ConfigureAwait(false); 2214await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false); 2272await InvokeEventHandlersAsync(reconnecting, closeException, _logger, Log.ErrorDuringReconnectingEvent).ConfigureAwait(false); 2292await InvokeEventHandlersAsync(reconnected, ConnectionId, _logger, Log.ErrorDuringReconnectedEvent).ConfigureAwait(false); 2560await ((ReceiveTask ?? Task.CompletedTask).ConfigureAwait(false)); 2585await RunTimerActions().ConfigureAwait(false); 2676await _hubConnection.SendHubMessage(this, PingMessage.Instance).ConfigureAwait(false); 2812await WaitConnectionLockAsync(token, methodName).ConfigureAwait(false);
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (4)
107await _writeLock.WaitAsync().ConfigureAwait(false); 166await _writeLock.WaitAsync(cancellationToken: default).ConfigureAwait(false); 197await _writeLock.WaitAsync(cancellationToken: default).ConfigureAwait(false); 262await _writeLock.WaitAsync().ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Core (4)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (4)
107await _writeLock.WaitAsync().ConfigureAwait(false); 166await _writeLock.WaitAsync(cancellationToken: default).ConfigureAwait(false); 197await _writeLock.WaitAsync(cancellationToken: default).ConfigureAwait(false); 262await _writeLock.WaitAsync().ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\aspnetcore\src\Shared\TaskExtensions.cs (2)
117await task.ConfigureAwait(false); 123await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.Build (3)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1412await Task.Delay(delay).ConfigureAwait(false);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
933await Task.WhenAll(tasks).ConfigureAwait(false); 1017await Task.WhenAll(cleanupTasks).ConfigureAwait(false);
Microsoft.Build.Tasks.CodeAnalysis (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
Microsoft.Build.Tasks.Core (14)
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (3)
51await RunInternalAsync(cancellationToken).ConfigureAwait(false); 112await _buildEngine.FlushEventsAsync(cancellationToken).ConfigureAwait(false); 113await _pipeServer.WritePacketAsync(new RarNodeExecuteResponse(rarTask, success), cancellationToken).ConfigureAwait(false);
AssemblyDependency\Node\RarNodeBuildEngine.cs (2)
134await _pipeServer.WritePacketAsync(_buildEvents, cancellationToken).ConfigureAwait(false); 158await _completion.WaitAsync(cancellationToken).ConfigureAwait(false);
DownloadFile.cs (2)
124await Task.Delay(RetryDelayMilliseconds, cancellationToken).ConfigureAwait(false); 217await responseStream.CopyToAsync(target, 1024, cancellationToken).ConfigureAwait(false);
src\msbuild\src\Shared\NodePipeServer.cs (1)
105await _pipeServer.WaitForConnectionAsync(cts.Token).ConfigureAwait(false);
TarDirectory.cs (3)
245await WriteStampedEntryAsync(writer, format, info, entryName, timestamp, cancellationToken).ConfigureAwait(continueOnCapturedContext: false); 252.ConfigureAwait(continueOnCapturedContext: false); 511.ConfigureAwait(continueOnCapturedContext: false);
Untar.cs (2)
182await ExtractAsync(reader, destinationDirectory).ConfigureAwait(continueOnCapturedContext: false); 365.ConfigureAwait(continueOnCapturedContext: false);
Unzip.cs (1)
281.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.CodeAnalysis (24)
DiagnosticAnalyzer\AnalyzerDriver.cs (12)
654await ExecutePrimaryAnalysisTaskAsync(analysisScope, usingPrePopulatedEventQueue: true, cancellationToken).ConfigureAwait(false); 708await WhenInitializedTask.ConfigureAwait(false); 716await ProcessCompilationEventsAsync(analysisScope, usingPrePopulatedEventQueue, cancellationToken).ConfigureAwait(false); 879await this.WhenCompletedTask.ConfigureAwait(false); 1558await Task.WhenAll(workerTasks.Concat(syntaxTreeActionsTask).Concat(additionalFileActionsTask)).ConfigureAwait(false); 1581await ProcessEventAsync(completedEvent, analysisScope, cancellationToken).ConfigureAwait(false); 1638await ProcessEventAsync(compilationEvent, analysisScope, cancellationToken).ConfigureAwait(false); 1668await OnEventProcessedCoreAsync(e, processedAnalyzers, analysisScope, cancellationToken).ConfigureAwait(false); 1680await onSymbolAndMembersProcessedAsync(symbolDeclaredEvent.Symbol, analyzer).ConfigureAwait(false); 1712await processContainerOnMemberCompletedAsync(symbol.ContainingNamespace, symbol, analyzer).ConfigureAwait(false); 1715await processContainerOnMemberCompletedAsync(type, symbol, analyzer).ConfigureAwait(false); 1725await OnEventProcessedCoreAsync(processedContainerEvent, ImmutableArray.Create(analyzer), analysisScope, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (11)
340await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 347await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 354await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 378await driver.WhenInitializedTask.ConfigureAwait(false); 575await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 582await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 649await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 656await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false); 754await driver.WhenCompletedTask.ConfigureAwait(false); 795await attachQueueAndProcessAllEventsAsync(builder, driver, cancellationToken).ConfigureAwait(false); 828await driver.AttachQueueAndProcessAllEventsAsync(eventQueue, analysisScope, cancellationToken).ConfigureAwait(false);
InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (21)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
86await editAsync(editor).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
83model, container, namespaceSymbols, conflicts, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).ConfigureAwait(false); 178ReduceOneNodeOrTokenAsync).ConfigureAwait(false);
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
Microsoft.CodeAnalysis.BuildClient.Package (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (17)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
193pragmasToIsUsedMap, idToSuppressMessageAttributesMap, suppressMessageAttributesToIsUsedMap, cancellationToken).ConfigureAwait(false); 533idToSuppressMessageAttributesMap, suppressMessageAttributesToIsUsedMap, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (24)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
95editor, annotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
237cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
118await InitializeNonDelegatedConstructorAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
58await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 64await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 68await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false); 69await AddParameterCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
51await MakeFieldReadonlyAsync(document, editor, declarators, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
125diagnostics.Length == 1, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (5)
330removeAssignments, nameGenerator, editor, cancellationToken).ConfigureAwait(false); 374preference, removeAssignments, nameGenerator, editor, cancellationToken).ConfigureAwait(false); 851await OnDocumentUpdatedAsync().ConfigureAwait(false); 862await OnDocumentUpdatedAsync().ConfigureAwait(false); 875await OnDocumentUpdatedAsync().ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
54cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
62document, diagnostic, nestedEditor, formattingOptions, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
89document, editor, ifStatement, properties, cancellationToken).ConfigureAwait(false); 94document, editor, (TConditionalExpressionSyntax)conditionalExpressionOrIfStatement, properties, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
86await editAsync(editor).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
83model, container, namespaceSymbols, conflicts, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).ConfigureAwait(false); 178ReduceOneNodeOrTokenAsync).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
95.ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
75cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
34await MakeLocalFunctionStaticAsync(document, localFunction, captures, syntaxEditor, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
88await fixer(document, localFunction, captures).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
88document, model, editor, node, alreadyHandled, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
53cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
60cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
57cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
66cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (4)
57await HandleDeclarationAsync(document, editor, node, cancellationToken).ConfigureAwait(false); 74await HandleVariableDeclarationAsync(document, editor, varDecl, cancellationToken).ConfigureAwait(false); 78await HandleForEachStatementAsync(document, editor, forEach, cancellationToken).ConfigureAwait(false); 82await HandleDeclarationExpressionAsync(document, editor, declarationExpression, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
59cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
103solutionEditor, document, constructorDeclaration, properties, removeMembers, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
68solutionEditor, document, semanticModel, variableDeclarator, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
153cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
48solutionEditor, parameter, fieldOrProperty, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (31)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
123await HandleDeclarationAsync(document, editor, type, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
84await _keywordCompletionProvider.ProvideCompletionsAsync(context).ConfigureAwait(false);
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
95await HandleSingleTypeAsync(context, semanticModel, token, type, isParams, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
47await base.ProvideCompletionsAsync(context).ConfigureAwait(false);
Completion\CompletionProviders\FileBasedPrograms\AbstractAppDirectiveCompletionProvider.cs (1)
81await AddDirectiveContentCompletionsAsync(context, textAfterDirectiveKind.Slice(start: contentStartIndex)).ConfigureAwait(false);
Completion\Providers\ContextVariableArgumentProvider.cs (1)
33await base.ProvideArgumentAsync(context).ConfigureAwait(false);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (2)
123await RemoveDirectFieldAndPropertyAssignmentsAsync().ConfigureAwait(false); 126await RewritePrimaryConstructorParameterReferencesAsync().ConfigureAwait(false);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
226cancellationToken).ConfigureAwait(false);
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
93solutionEditor, parameter, fieldOrProperty, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
95.ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
75cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
34await MakeLocalFunctionStaticAsync(document, localFunction, captures, syntaxEditor, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
88await fixer(document, localFunction, captures).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
88document, model, editor, node, alreadyHandled, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
53cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
60cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
57cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
66cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (4)
57await HandleDeclarationAsync(document, editor, node, cancellationToken).ConfigureAwait(false); 74await HandleVariableDeclarationAsync(document, editor, varDecl, cancellationToken).ConfigureAwait(false); 78await HandleForEachStatementAsync(document, editor, forEach, cancellationToken).ConfigureAwait(false); 82await HandleDeclarationExpressionAsync(document, editor, declarationExpression, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
59cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
103solutionEditor, document, constructorDeclaration, properties, removeMembers, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorFixAllProvider.cs (1)
56solutionEditor, document, constructorDeclaration, diagnostic.Properties, removeMembers, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
68solutionEditor, document, semanticModel, variableDeclarator, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockFixAllProvider.cs (1)
48solutionEditor, document, semanticModel, declarator, cancellationToken).ConfigureAwait(false);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
200await FixDeclarationsAsync(document, editor, root, [.. declarationsToFix], helper, useExpressionBody, cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (2)
48await ComputeRefactoringsAsync(context, optionValue.Value, analyzerActive: false).ConfigureAwait(false); 70await ComputeRefactoringsAsync(context, optionValue.Value, analyzerActive: true).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
153cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
48solutionEditor, parameter, fieldOrProperty, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerWrapper.cs (1)
49await responseTask.ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Api\HotReloadMSBuildWorkspace.cs (2)
234await Task.Delay(20, cancellationToken).ConfigureAwait(false); 244await Task.Delay(20 * (attemptIndex + 1), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
56await callback(project, omniSharpResult, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (246)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (1)
112solutionEditor, member, parameter, cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (6)
185await FindResultsInAllSymbolsInStartingProjectAsync(allReferences, finder, exact, cancellationToken).ConfigureAwait(false); 194await FindResultsInUnreferencedProjectSourceSymbolsAsync(projectToAssembly, project, allReferences, maxResults, finder, exact, cancellationToken).ConfigureAwait(false); 198await FindResultsInUnreferencedMetadataSymbolsAsync(referenceToCompilation, project, allReferences, maxResults, finder, exact, cancellationToken).ConfigureAwait(false); 202await finder.FindNugetOrReferenceAssemblyReferencesAsync(allReferences, exact, cancellationToken).ConfigureAwait(false); 251linkedTokenSource.Token).ConfigureAwait(false); 308linkedTokenSource.Token).ConfigureAwait(false);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (5)
47await FindWorkerAsync(new(typeQuery.Name + AttributeSuffix, typeQuery.Arity), namespaceQuery, isAttributeSearch: true).ConfigureAwait(false); 49await FindWorkerAsync(typeQuery, namespaceQuery, isAttributeSearch: false).ConfigureAwait(false); 60allReferences, nameNode, typeQuery, namespaceQuery, isAttributeSearch, cancellationToken).ConfigureAwait(false); 67sourceName, sourceUrl, allReferences, nameNode, typeQuery, namespaceQuery, isAttributeSearch, cancellationToken).ConfigureAwait(false); 147cancellationToken: cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (1)
241await engine.FindReferencesAsync(symbol, cancellationToken).ConfigureAwait(false);
CodeFixes\Service\CodeFixService.cs (1)
691await task.ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (7)
104document, diagnosticsToFix, callback, fixAllState, cancellationToken).ConfigureAwait(false); 130await task.ConfigureAwait(false); 131}).ConfigureAwait(false); 156await Task.WhenAll(tasks).ConfigureAwait(false); 266await Task.WhenAll(getChangedDocumentsTasks).ConfigureAwait(false); 291await Task.WhenAll(getFinalDocumentTasks).ConfigureAwait(false); 332await merger.TryMergeChangesAsync(currentDocument, cancellationToken).ConfigureAwait(false);
CodeRefactorings\CodeRefactoringService.cs (1)
272await task.ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
546FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false);
Completion\CompletionService_GetCompletions.cs (1)
358() => provider.ProvideCompletionsAsync(context)).ConfigureAwait(false);
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
96await completionProvider.ProvideCompletionsAsync(context).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
73await AddAssemblyCompletionItemsAsync(context, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
61await AddCompletionItemsAsync(completionContext, syntaxContext, namespacesInScope, cancellationToken).ConfigureAwait(false);
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
58await ProvideCompletionsAsync(context, pathThroughLastSlash).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (2)
118propertyMap, cancellationToken).ConfigureAwait(false); 125anonymousType, cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (4)
312containingNamespace, parameterNamingRule, isRecord, cancellationToken).ConfigureAwait(false); 316documentToEditorMap, cancellationToken).ConfigureAwait(false); 471project, result, tupleFieldNames, cancellationToken).ConfigureAwait(false); 484project, result, tupleFieldNames, cancellationToken).ConfigureAwait(false);
Copilot\ICopilotChangeAnalysisService.cs (1)
324cancellationToken).ConfigureAwait(false);
Debugging\DebugInformationReaderProvider.cs (1)
77await _stream.CopyToAsync(stream, bufferSize: 4 * 1024, cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (3)
145frozenProject, frozenDocument, callback, lazyProjectVersion, cancellationToken).ConfigureAwait(false); 172await ProcessProjectAsync(frozenSolution.GetRequiredProject(projectId), callback, cancellationToken).ConfigureAwait(false); 193project, specificDocument: null, callback, lazyProjectVersion, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (4)
155document, documentAnalysisScope.Span, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false); 169document, span: null, callback, cancellationToken).ConfigureAwait(false); 181document, span: null, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false); 200semanticModel, span, hostCompilationWithAnalyzers, analyzerInfoCache.GetDiagnosticDescriptors, reportDiagnostic, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (3)
297await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, syntaxAnalyzers, AnalysisKind.Syntax, range, incrementalAnalysis: false, list, cancellationToken).ConfigureAwait(false); 298await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, semanticSpanAnalyzers, AnalysisKind.Semantic, range, incrementalAnalysis, list, cancellationToken).ConfigureAwait(false); 299await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, semanticDocumentAnalyzers, AnalysisKind.Semantic, span: null, incrementalAnalysis: false, list, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (6)
120await ExecuteCompilerAnalyzerAsync(compilerAnalyzerData, oldMemberSpans, builder).ConfigureAwait(false); 121await ExecuteSpanBasedAnalyzersAsync(spanBasedAnalyzers, oldMemberSpans, builder).ConfigureAwait(false); 122await ExecuteDocumentBasedAnalyzersAsync(documentBasedAnalyzers, oldMemberSpans, builder).ConfigureAwait(false); 144await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false); 156await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false); 168await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false);
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (3)
104await VerifyDiagnosticLocationsAsync(diagnostics, document.Project, cancellationToken).ConfigureAwait(false); 128await VerifyDiagnosticLocationAsync(diagnostic.Id, diagnostic.Location).ConfigureAwait(false); 134await VerifyDiagnosticLocationAsync(diagnostic.Id, location).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (5)
127documentsToSearch, options, cancellationToken).ConfigureAwait(false); 233await AddLocationSpanAsync(symbol.Locations.First(), solution, spanSet, tagMap, HighlightSpanKind.Definition, cancellationToken).ConfigureAwait(false); 259await AddLocationSpanAsync(location, solution, spanSet, tagMap, HighlightSpanKind.Definition, cancellationToken).ConfigureAwait(false); 268await AddLocationSpanAsync(referenceLocation.Location, solution, spanSet, tagMap, referenceKind, cancellationToken).ConfigureAwait(false); 275await AddLocationSpanAsync(location, solution, spanSet, tagMap, HighlightSpanKind.Reference, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (1)
1193await GetProjectDifferencesAsync(Log, oldProject, newProject, projectDifferences, projectDiagnostics, DebuggingSession.DiagnosticLevel, cancellationToken).ConfigureAwait(false);
Emit\CompilationOutputs.cs (1)
162await peImage.CopyToAsync(stream, bufferSize: 4 * 1024, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (2)
130await WaitAsync(CancellationToken).ConfigureAwait(false); 139await ExecuteAsync().ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.AbstractUnitTestingPriorityProcessor.cs (1)
77await HigherQueueOperationTask.ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (19)
240await EnqueueFullProjectWorkItemAsync(addedProject, UnitTestingInvocationReasons.DocumentAdded, processSourceGeneratedDocuments).ConfigureAwait(false); 245await EnqueueWorkItemAsync(projectChanges, processSourceGeneratedDocuments).ConfigureAwait(continueOnCapturedContext: false); 250await EnqueueFullProjectWorkItemAsync(removedProject, UnitTestingInvocationReasons.DocumentRemoved, processSourceGeneratedDocuments).ConfigureAwait(false); 262await EnqueueFullProjectWorkItemAsync(solution.GetRequiredProject(projectId), invocationReasons, processSourceGeneratedDocuments).ConfigureAwait(false); 275await EnqueueWorkItemAsync(newProject.GetChanges(oldProject), processSourceGeneratedDocuments).ConfigureAwait(false); 304await EnqueueChangedDocumentWorkItemAsync(oldProject.GetRequiredDocument(documentId), newProject.GetRequiredDocument(documentId)).ConfigureAwait(false); 335await EnqueueChangedDocumentWorkItemAsync(oldDocument, newDocument).ConfigureAwait(continueOnCapturedContext: false); 384await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false); 387await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false); 390await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false); 397await EnqueueDocumentWorkItemAsync(project, document.Id, document, invocationReasons).ConfigureAwait(false); 408await EnqueueWorkItemAsync(analyzer, project, documentId, document: null, invocationReasons).ConfigureAwait(false); 425await EnqueueProjectConfigurationChangeWorkItemAsync(projectChanges, processSourceGeneratedDocuments).ConfigureAwait(false); 428await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false); 433.ConfigureAwait(continueOnCapturedContext: false); 437await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 503await EnqueueFullProjectWorkItemAsync(projectChanges.NewProject, projectConfigurationChange, processSourceGeneratedDocuments).ConfigureAwait(false); 515await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, UnitTestingInvocationReasons.DocumentChanged).ConfigureAwait(false); 522await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, differenceResult.ChangeType, differenceResult.ChangedMember).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (5)
136cancellationToken), cancellationToken).ConfigureAwait(false); 141await RunBodyAnalyzersAsync(analyzers, workItem, document, cancellationToken).ConfigureAwait(false); 175await runnerAsync(local, v, c).ConfigureAwait(false); 195cancellationToken), cancellationToken).ConfigureAwait(false); 204cancellationToken), cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (3)
51await WaitForHigherPriorityOperationsAsync().ConfigureAwait(false); 57await ProcessProjectAsync(Analyzers, workItem, projectCancellation).ConfigureAwait(false); 139(a, p, c) => a.AnalyzeProjectAsync(p, reasons, c), cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (7)
116await WaitForHigherPriorityOperationsAsync().ConfigureAwait(false); 140await ProcessDocumentAsync(Analyzers, workItem, documentCancellation).ConfigureAwait(false); 210await ProcessReanalyzeDocumentAsync(workItem, textDocument, cancellationToken).ConfigureAwait(false); 212await Processor.ProcessDocumentAnalyzersAsync(textDocument, analyzers, workItem, cancellationToken).ConfigureAwait(false); 218await RemoveDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 278c), cancellationToken).ConfigureAwait(false); 296await analyzer.RemoveDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (6)
130await EnqueueWorkItemAsync(document, symbol).ConfigureAwait(false); 157await EnqueueWorkItemAsync(document, symbol).ConfigureAwait(false); 187await _processor.EnqueueWorkItemAsync(solution.GetRequiredProject(documentId.ProjectId), documentId, document: null).ConfigureAwait(false); 413await EnqueueWorkItemAsync(project).ConfigureAwait(false); 422await EnqueueWorkItemAsync(project).ConfigureAwait(false); 436await EnqueueWorkItemAsync(project, documentId, document: null).ConfigureAwait(false);
ExternalAccess\VSTypeScript\VSTypeScriptClassificationService.cs (1)
56await classificationService.AddSemanticClassificationsAsync(document, textSpans, list, cancellationToken).ConfigureAwait(false);
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (5)
45await onResultsFound(results.SelectAsArray(Convert)).ConfigureAwait(false); 66await ProcessProjectAsync(group.Key).ConfigureAwait(false); 69await ProcessProjectAsync(project).ConfigureAwait(false); 83await onResultsFound(results.SelectAsArray(Convert)).ConfigureAwait(false); 86await onProjectCompleted().ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (2)
38context, symbol, project, classificationOptions, cancellationToken).ConfigureAwait(false); 64symbol, project, context, classificationOptions, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (6)
26definitionTrackingContext, document, position, classificationOptions, cancellationToken).ConfigureAwait(false); 62context, document, position, classificationOptions, cancellationToken).ConfigureAwait(false); 100context, symbol, project, classificationOptions, cancellationToken).ConfigureAwait(false); 121await FindReferencesAsync(context, symbol, project, searchOptions, classificationOptions, cancellationToken).ConfigureAwait(false); 152context, symbol, project, searchOptions, classificationOptions, cancellationToken).ConfigureAwait(false); 239tokenValue, Type.GetTypeCode(tokenValue.GetType()), solution, progressAdapter, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
137cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (1)
104await AddFixesAsync(document, semanticModel, simpleName, name, proposedContainers, fixes, cancellationToken).ConfigureAwait(false);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (1)
89cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
70await AddOperatorsAsync(methods, cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
66await HandleNonSelectionAsync(context).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (2)
107await AddMembersAsync(members, options).ConfigureAwait(false); 170await AddFieldDelegatingConstructorAsync(argumentList, members, options).ConfigureAwait(false);
InlineHints\AbstractInlineHintsService.cs (2)
28await inlineParameterService.AddInlineHintsAsync(document, textSpan, options.ParameterOptions, options.DisplayOptions, displayAllOverride, result, cancellationToken).ConfigureAwait(false); 33await inlineTypeService.AddInlineHintsAsync(document, textSpan, options.TypeOptions, options.DisplayOptions, displayAllOverride, result, cancellationToken).ConfigureAwait(false);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
321}).ConfigureAwait(false); 339documents: null, FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
273await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false); 534await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (7)
169await AddDescriptionPartAsync(firstSymbol).ConfigureAwait(false); 377await AddPartsAsync(symbolGroup).ConfigureAwait(false); 386await AddPartsAsync(symbolGroup).ConfigureAwait(false); 408await AddDescriptionForFieldAsync(field).ConfigureAwait(false); 412await AddDescriptionForLocalAsync(local).ConfigureAwait(false); 440await AddDescriptionForParameterAsync(parameter).ConfigureAwait(false); 456await AddDescriptionPartAsync(alias.Target).ConfigureAwait(false);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
181await Task.Delay(DelayTimeSpan.Short, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (4)
106storageService, documentKeys, priorityDocumentKeys, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 138ProcessSingleProjectGroupAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false); 173}).ConfigureAwait(false); 176await onProjectCompleted().ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.cs (1)
51await onResultsFound(results.ToImmutableAndClear()).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (4)
57projects, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 74projects, ProcessSingleProjectAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false); 87document, patternInfo, declaredSymbolInfoKindsSet, onItemFound, cancellationToken)).ConfigureAwait(false); 89await onProjectCompleted().ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (7)
50await SearchDocumentAndRelatedDocumentsInCurrentProcessAsync(document, searchPattern, kinds, onItemsFound, cancellationToken).ConfigureAwait(false); 71SearchRelatedDocumentsInCurrentProcessAsync()).ConfigureAwait(false); 99await SearchDocumentsInCurrentProcessAsync(relatedDocuments).ConfigureAwait(false); 185projects, priorityDocuments, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 212SearchSingleProjectAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false); 227document, patternInfo, declaredSymbolInfoKindsSet, onItemFound, cancellationToken)).ConfigureAwait(false); 229await onProjectCompleted().ConfigureAwait(false);
NavigateTo\IRemoteNavigateToSearchService.cs (2)
59await onItemsFound(items, default, cancellationToken).ConfigureAwait(false); 73await onProjectCompleted().ConfigureAwait(false);
NavigateTo\NavigateToSearcher.cs (20)
149await SearchCurrentDocumentAsync(cancellationToken).ConfigureAwait(false); 153await SearchCurrentProjectAsync(documentSupport, cancellationToken).ConfigureAwait(false); 166await SearchAllProjectsAsync(isFullyLoaded, documentSupport, cancellationToken).ConfigureAwait(false); 176await ProgressItemsCompletedAsync(_remainingProgressItems, cancellationToken).ConfigureAwait(false); 192await AddProgressItemsAsync(1, cancellationToken).ConfigureAwait(false); 196cancellationToken).ConfigureAwait(false); 226await SearchSpecificProjectsAsync(isFullyLoaded, documentSupport, orderedProjects, cancellationToken).ConfigureAwait(false); 252cancellationToken).ConfigureAwait(false); 255await SearchFullyLoadedProjectsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false); 258await SearchGeneratedDocumentsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false); 266await AddProgressItemsAsync(projectCount, cancellationToken).ConfigureAwait(false); 267await SearchCachedDocumentsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false); 373SearchCoreAsync).ConfigureAwait(false); 406nonDuplicates.ToImmutableAndClear(), _activeDocument, cancellationToken).ConfigureAwait(false); 409() => this.ProgressItemsCompletedAsync(count: 1, cancellationToken)).ConfigureAwait(false); 451await onProjectCompleted().ConfigureAwait(false); 457onResultsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 508await onProjectCompleted().ConfigureAwait(false); 513_solution, projects, _searchPattern, _kinds, _activeDocument, onResultsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 539await onProjectCompleted().ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
225desiredGetMethodName, desiredSetMethodName, cancellationToken).ConfigureAwait(false); 280cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (5)
50await CheckNodeAsync(context, document, node, cancellationToken).ConfigureAwait(false); 58await CheckTokenAsync(context, document, token, cancellationToken).ConfigureAwait(false); 83await CreateSpellCheckCodeIssueAsync(context, token, IsGeneric(name), cancellationToken).ConfigureAwait(false); 100await CreateSpellCheckCodeIssueAsync(context, token, IsGeneric(token), cancellationToken).ConfigureAwait(false); 142completionList, similarityChecker).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
193pragmasToIsUsedMap, idToSuppressMessageAttributesMap, suppressMessageAttributesToIsUsedMap, cancellationToken).ConfigureAwait(false); 533idToSuppressMessageAttributesMap, suppressMessageAttributesToIsUsedMap, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
95editor, annotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
237cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
118await InitializeNonDelegatedConstructorAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
58await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 64await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 68await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false); 69await AddParameterCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
51await MakeFieldReadonlyAsync(document, editor, declarators, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
125diagnostics.Length == 1, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (5)
330removeAssignments, nameGenerator, editor, cancellationToken).ConfigureAwait(false); 374preference, removeAssignments, nameGenerator, editor, cancellationToken).ConfigureAwait(false); 851await OnDocumentUpdatedAsync().ConfigureAwait(false); 862await OnDocumentUpdatedAsync().ConfigureAwait(false); 875await OnDocumentUpdatedAsync().ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
54cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
62document, diagnostic, nestedEditor, formattingOptions, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
89document, editor, ifStatement, properties, cancellationToken).ConfigureAwait(false); 94document, editor, (TConditionalExpressionSyntax)conditionalExpressionOrIfStatement, properties, cancellationToken).ConfigureAwait(false);
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
119await codeFixProvider.RegisterCodeFixesAsync(context).ConfigureAwait(false);
UnusedReferences\UnusedReferencesRemover.cs (1)
271await ApplyReferenceUpdatesAsync(referenceCleanupService, projectFilePath, referenceUpdates, cancellationToken).ConfigureAwait(true);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (2)
207await _argumentAnalyzer.ComputeRefactoringsAsync(context, root).ConfigureAwait(false); 211await _attributeArgumentAnalyzer.ComputeRefactoringsAsync(context, root).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (13)
52await TrackVariableReferencesAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false); 59await AddItemsFromAssignmentAsync(document, node, operationCollector, cancellationToken).ConfigureAwait(false); 90await TrackVariableDefinitionsAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false); 91await TrackVariableReferencesAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false); 117await TrackVariableReferencesAsync(parameterSymbol, operationCollector, cancellationToken).ConfigureAwait(false); 122await TrackParameterSymbolAsync(parameterSymbol, operationCollector, cancellationToken).ConfigureAwait(false); 131await TrackMethodSymbolAsync(methodSymbol, operationCollector, cancellationToken).ConfigureAwait(false); 161await collector.VisitAsync(assignmentOperation, cancellationToken).ConfigureAwait(false); 171documents: null, FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false); 185documents: null, FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false); 226await collector.VisitAsync(operation, cancellationToken).ConfigureAwait(false); 239await TrackVariableReferencesAsync(outOrRefParam, collector, cancellationToken).ConfigureAwait(false); 316await collector.VisitAsync(initializer, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (8)
54await TrackConstructorAsync(location, cancellationToken).ConfigureAwait(false); 60await TrackMethodInvocationArgumentsAsync(location, cancellationToken).ConfigureAwait(false); 79await AddItemsFromAssignmentAsync(location.Document, node, _operationCollector, cancellationToken).ConfigureAwait(false); 90await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false); 118await _operationCollector.VisitAsync(argumentOperation, cancellationToken).ConfigureAwait(false); 136await _operationCollector.VisitAsync(expressionOperation, cancellationToken).ConfigureAwait(false); 164await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false); 199await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.OperationCollector.cs (7)
52await VisitAsync(returnOperation, cancellationToken).ConfigureAwait(false); 86await AddOperationAsync(operation, symbolInfo.Symbol, cancellationToken).ConfigureAwait(false); 93await VisitAsync(child, cancellationToken).ConfigureAwait(false); 107await AddOperationAsync(invocationOperation, invocationOperation.TargetMethod, cancellationToken).ConfigureAwait(false); 108await TrackArgumentsAsync(invocationOperation.Arguments, cancellationToken).ConfigureAwait(false); 192async (pair, cancellationToken) => await pair.collector.VisitAsync(pair.argument.Value, cancellationToken).ConfigureAwait(false)).ConfigureAwait(false);
ValueTracking\ValueTrackingService.cs (2)
53await ValueTracker.TrackValueSourceAsync(selection, document, progressTracker, cancellationToken).ConfigureAwait(false); 83await ValueTracker.TrackValueSourceAsync(solution, previousTrackedItem, progressTracker, cancellationToken).ConfigureAwait(false);
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (3)
97await AddWrapCodeActionAsync(actions, cancellationToken).ConfigureAwait(false); 98await AddUnwrapCodeActionAsync(actions, cancellationToken).ConfigureAwait(false); 99await AddWrapLongCodeActionAsync(actions, cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (4)
140await AddWrappingGroupsAsync(result, cancellationToken).ConfigureAwait(false); 210wrappingStyle, result, cancellationToken).ConfigureAwait(false); 302wrappingStyle, result, cancellationToken).ConfigureAwait(false); 436await AddTextChangeBetweenOpenAndFirstItemAsync(wrappingStyle, result, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Copilot\Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (1)
180await StartRefinementSessionCoreAsync(oldDocument, newDocument, primaryDiagnostic, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.NetAnalyzers (6)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.Fixer.cs (1)
113await AddAccessorAsync(document, nodeToFix, editor, cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.Fixer.cs (2)
99await ImplementInterfacesOnDynamicCastableImplementationAsync(declaration, document, editor, cancellationToken).ConfigureAwait(false); 103await MakeMemberDeclaredOnImplementationTypeStaticAsync(declaration, document, editor, cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypes.Fixer.cs (2)
33await SealDeclarationAt(solutionEditor, context.Diagnostics[0].Location, token).ConfigureAwait(false); 36await SealDeclarationAt(solutionEditor, location, token).ConfigureAwait(false);
SyntaxEditorFixAllProvider.cs (1)
180await applyFixAsync(document, diagnostic, editor, state, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
Microsoft.CodeAnalysis.Scripting (1)
ScriptExecutionState.cs (1)
94await precedingExecutors[executorIndex++](_submissionStates).ConfigureAwait(continueOnCapturedContext: false);
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
87Dim semanticDoc = Await SemanticDocument.CreateAsync(document, cancellationToken).ConfigureAwait(False)
ExtractMethod\VisualBasicSelectionResult.vb (1)
30root, {(selectionInfo.FirstTokenInFinalSpan, s_firstTokenAnnotation), (selectionInfo.LastTokenInFinalSpan, s_lastTokenAnnotation)})), cancellationToken).ConfigureAwait(False)
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
69Dim currentDocument = Await SemanticDocument.CreateAsync(document.Project.Solution.GetDocument(declNode.SyntaxTree), cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (180)
Classification\AbstractClassificationService.cs (3)
102document, textSpans, type, options, result, cancellationToken).ConfigureAwait(false); 151document, textSpans, options, getNodeClassifiers, getTokenClassifiers, result, cancellationToken).ConfigureAwait(false); 175document, textSpans, options, result, cancellationToken).ConfigureAwait(false);
Classification\ClassifierHelper.cs (4)
39.ConfigureAwait(false); 78await classificationService.AddSyntacticClassificationsAsync(document, spans, syntaxSpans, cancellationToken).ConfigureAwait(false); 82await classificationService.AddSemanticClassificationsAsync(document, spans, options, semanticSpans, cancellationToken).ConfigureAwait(false); 83await classificationService.AddEmbeddedLanguageClassificationsAsync(document, spans, options, semanticSpans, cancellationToken).ConfigureAwait(false);
CodeCleanup\AbstractCodeCleanerService.cs (1)
502await currentDocument.VerifyNoErrorsAsync("Pretty-listing introduced errors in error-free code", cancellationToken).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (6)
58await FixSingleContextAsync(fixAllContext, progressTracker, docIdToTextMerger).ConfigureAwait(false); 83await AddDocumentChangesAsync(fixAllContext, progressTracker, docIdToTextMerger, documentToDiagnostics).ConfigureAwait(false); 128await MergeTextChangesAsync(fixAllContext, allChangedDocumentsInDiagnosticsOrder, docIdToTextMerger).ConfigureAwait(false); 159await registerTask.ConfigureAwait(false); 223async () => await textMerger.TryMergeChangesAsync(allDocChanges, cancellationToken).ConfigureAwait(false), cancellationToken)); 226await Task.WhenAll(tasks).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (1)
95}).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
67await TryMergeChangesAsync(newDocument, cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
90}).ConfigureAwait(false);
CodeRefactorings\FixAllOccurences\DocumentBasedRefactorAllProvider.cs (1)
102}).ConfigureAwait(false);
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
72await editAsync(editor).ConfigureAwait(false);
Editing\SymbolEditor.cs (2)
288await editAction(editor, declaration, cancellationToken).ConfigureAwait(false); 470await editAction(editor, decl, cancellationToken).ConfigureAwait(false);
ExtensionManager\IExtensionManagerExtensions.cs (1)
58await task.ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (9)
72await SearchCurrentProjectAsync().ConfigureAwait(false); 73await SearchProjectReferencesAsync().ConfigureAwait(false); 74await SearchMetadataReferencesAsync().ConfigureAwait(false); 86project, query, criteria, buffer, cancellationToken).ConfigureAwait(false); 89await AddAllAsync(buffer, mapSymbol: false).ConfigureAwait(false); 104referencedProject, query, criteria, buffer, cancellationToken).ConfigureAwait(false); 108await AddAllAsync(buffer, mapSymbol: referencedProject.Language != project.Language).ConfigureAwait(false); 129query, criteria, buffer, cancellationToken).ConfigureAwait(false); 132await AddAllAsync(buffer, mapSymbol: false).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
184project, query, criteria, result, cancellationToken).ConfigureAwait(false); 197project, query, filter, result, cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (5)
81await FindReferencesWorkerAsync(cancellationToken).ConfigureAwait(false); 93ProcessDocumentAsync).ConfigureAwait(false); 109await ProcessDocumentWorkerAsync(document, cancellationToken).ConfigureAwait(false); 128await SearchDocumentAsync(document, cancellationToken).ConfigureAwait(false); 133await SearchDocumentAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
191solution, symbolOrigination, dependentProjects, cancellationToken).ConfigureAwait(false); 196await AddSubmissionDependentProjectsAsync(solution, symbolOrigination.sourceProject, dependentProjects, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder.cs (9)
137await DescendInheritanceTreeInProjectAsync(project).ConfigureAwait(false); 155await AddDescendantMetadataTypesInProjectAsync(tempBuffer, project).ConfigureAwait(false); 175await AddDescendantSourceTypesInProjectAsync(tempBuffer, project).ConfigureAwait(false); 220predicate: static n => n.BaseType?.SpecialType == SpecialType.System_Object).ConfigureAwait(false); 224projectIndex.ValueTypes, tempBuffer, predicate: null).ConfigureAwait(false); 228projectIndex.Enums, tempBuffer, predicate: null).ConfigureAwait(false); 232projectIndex.Delegates, tempBuffer, predicate: null).ConfigureAwait(false); 236await AddSourceTypesThatDeriveFromNameAsync(tempBuffer, type.Name).ConfigureAwait(false); 321typesToSearchFor, project, compilation, peReference, tempBuffer).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
158project, documents, static (index, predefinedType) => index.ContainsPredefinedType(predefinedType), predefinedType, processResult, processResultData, cancellationToken).ConfigureAwait(false); 727await DetermineDocumentsToSearchAsync(typedSymbol, globalAliases, project, documents, processResult, processResultData, options, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (8)
67project, documents, typeName, processResult, processResultData, cancellationToken).ConfigureAwait(false); 74project, documents, globalAlias, processResult, processResultData, cancellationToken).ConfigureAwait(false); 79project, documents, containingType.SpecialType.ToPredefinedType(), processResult, processResultData, cancellationToken).ConfigureAwait(false); 82project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 87project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 90await FindDocumentsWithCollectionExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 112await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, typeName).ConfigureAwait(false); 115await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, simpleName).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (2)
59await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false); 60await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (2)
50await FindDocumentsAsync(project, documents, StandardCallbacks<Document>.AddToHashSet, result, cancellationToken, underlyingNamedType.Name).ConfigureAwait(false); 51await FindDocumentsAsync(project, documents, underlyingNamedType.SpecialType.ToPredefinedType(), StandardCallbacks<Document>.AddToHashSet, result, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\FieldSymbolReferenceFinder.cs (2)
39await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false); 40await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (6)
63await AddDocumentsToSearchAsync(symbol.Name, project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 67await AddDocumentsToSearchAsync(alias, project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 71project, documents, symbol.SpecialType.ToPredefinedType(), processResult, processResultData, cancellationToken).ConfigureAwait(false); 74project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 92project, documents, processResult, processResultData, cancellationToken, throughName).ConfigureAwait(false); 95await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, simpleName).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (4)
37await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false); 39await FindDocumentsWithPredicateAsync(project, documents, static index => index.ContainsGlobalKeyword, processResult, processResultData, cancellationToken).ConfigureAwait(false); 46project, documents, processResult, processResultData, cancellationToken, globalAlias).ConfigureAwait(false); 50await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (3)
32await FindDocumentsAsync(project, documents, op, processResult, processResultData, cancellationToken).ConfigureAwait(false); 33await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 48project, documents, static (index, op) => index.ContainsPredefinedOperator(op), op, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (8)
91await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, methodSymbol.Name).ConfigureAwait(false); 92await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 95await FindDocumentsWithForEachStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 98await FindDocumentsWithDeconstructionAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 101await FindDocumentsWithAwaitExpressionAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 104await FindDocumentsWithCollectionInitializersAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 107await FindDocumentsWithUsingStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 110await FindDocumentsWithCollectionExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
35cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (3)
52await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false); 64cancellationToken).ConfigureAwait(false); 67await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (5)
117await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false); 120await FindDocumentsWithForEachStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 123await FindDocumentWithExplicitOrImplicitElementAccessExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 126await FindDocumentWithIndexerMemberCrefAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false); 128await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (2)
82await AddGlobalAliasesAsync(project, symbols, symbolToGlobalAliases, cancellationToken).ConfigureAwait(false); 159cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (2)
58await AddDownSymbolsAsync(this.Engine, current, _allSymbols, workQueue, projects, cancellationToken).ConfigureAwait(false); 59await AddUpSymbolsAsync(this.Engine, current, _allSymbols, workQueue, projects, _includeImplementationsThroughDerivedTypes, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (7)
74cancellationToken).ConfigureAwait(false); 123tuple.project, tuple.allSymbols, onReferenceFound, cancellationToken).ConfigureAwait(false)).ConfigureAwait(false); 148await symbolSet.InheritanceCascadeAsync(currentProject, cancellationToken).ConfigureAwait(false); 226await AddGlobalAliasesAsync(project, allSymbols, symbolToGlobalAliases, cancellationToken).ConfigureAwait(false); 238_options, cancellationToken).ConfigureAwait(false); 254ProcessDocumentAsync(kvp.Key, kvp.Value, symbolToGlobalAliases, onReferenceFound, cancellationToken)).ConfigureAwait(false); 314}).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (8)
153await AddCascadedAndLinkedSymbolsToAsync(engine, currentSymbol, result, workQueue, cancellationToken).ConfigureAwait(false); 173engine, currentSymbol, upSymbols, workQueue, allProjects, includeImplementationsThroughDerivedTypes, cancellationToken).ConfigureAwait(false); 183await AddCascadedAndLinkedSymbolsToAsync(engine, symbol, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false); 248await AddCascadedAndLinkedSymbolsToAsync(engine, implementations, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false); 255await AddCascadedAndLinkedSymbolsToAsync(engine, overrides, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false); 285await AddCascadedAndLinkedSymbolsToAsync(engine, match, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false); 290await AddCascadedAndLinkedSymbolsToAsync(engine, overriddenMember, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false); 293await AddCascadedAndLinkedSymbolsToAsync(engine, symbol.ExplicitInterfaceImplementations(), seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
53await AddDownSymbolsAsync(this.Engine, current, initialSymbols, workQueue, projects, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_Callers.cs (3)
55await AddReferencingSymbolsAsync(directReference, isDirect: true).ConfigureAwait(false); 60await AddReferencingSymbolsAsync(indirectReference, isDirect: false).ConfigureAwait(false); 90options, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindLiteralReferences.cs (1)
40await FindLiteralReferencesInCurrentProcessAsync(value, solution, progress, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindReferences_Current.cs (1)
66documents, options, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (2)
47documents: null, options, cancellationToken).ConfigureAwait(false); 109options, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindRenamableReferences.cs (1)
31await engine.FindReferencesAsync(symbols, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (2)
131await AnalyzeProjectAsync(project, cancellationToken).ConfigureAwait(false); 153await Task.WhenAll(tasks).ConfigureAwait(false);
Log\WorkspaceStructureLogger.cs (1)
98await AddCompilationElementsAsync(projectElement, project, cancellationToken).ConfigureAwait(false);
Remote\IRemoteKeepAliveService.cs (1)
95await WaitForSessionIdAsync(compilationState, projectId, client, session, callerCancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (5)
224_cancellationToken).ConfigureAwait(false); 235await DebugVerifyNoErrorsAsync(conflictResolution, documentsIdsToBeCheckedForConflict).ConfigureAwait(false); 296await changeDoc.VerifyNoErrorsAsync("Rename introduced errors in error-free code", _cancellationToken, ignoreErrorCodes).ConfigureAwait(false); 468projectId, renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations, _cancellationToken).ConfigureAwait(false); 708await AddDocumentsWithPotentialConflictsAsync(documentsFromAffectedProjects, documentIds, possibleNameConflicts).ConfigureAwait(false);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
386stringLocations, cancellationToken).ConfigureAwait(false); 391await AddLocationsToRenameInCommentsAsync(document, renameText, commentLocations, cancellationToken).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListener.cs (1)
193await Task.Delay(TimeSpan.FromMilliseconds(10)).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
170await Task.Delay(smallTimeout).ConfigureAwait(continueOnCapturedContext);
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
86await editAsync(editor).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
83model, container, namespaceSymbols, conflicts, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).ConfigureAwait(false); 178ReduceOneNodeOrTokenAsync).ConfigureAwait(false);
Telemetry\TelemetryLogging.cs (1)
140await Task.Delay(TimeSpan.FromMinutes(30), cancellationToken).ConfigureAwait(false);
Workspace\Host\TemporaryStorage\LegacyTemporaryStorageService.cs (1)
73await stream.CopyToAsync(newStream, cancellationToken).ConfigureAwait(false);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
366}, onAfterUpdateAlways: null).ConfigureAwait(false);
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
531await _project.OnBatchScopeDisposedMaybeAsync(useAsync: true).ConfigureAwait(false); 627}).ConfigureAwait(false); 640await _projectSystemProjectFactory.RaiseOnDocumentsAddedMaybeAsync(useAsync, documentFileNamesAdded).ConfigureAwait(false);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
311await ApplyBatchChangeToWorkspaceMaybe_NoLockAsync(useAsync, mutation, onAfterUpdateAlways).ConfigureAwait(false); 946}, onAfterUpdateAlways).ConfigureAwait(false);
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
165await _callback(filePath, cancellationToken).ConfigureAwait(false);
Workspace\Solution\ChecksumCollection.cs (2)
71await stateChecksums.FindAsync(assetPath, state, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 84await stateChecksums.FindAsync(assetPath, state, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
Workspace\Solution\StateChecksums.cs (8)
130compilationState.FrozenSourceGeneratedDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 175await solutionChecksums.FindAsync(solutionState, projectCone, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 181await solutionChecksums.FindAsync(solutionState, projectCone, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 298await projectStateChecksums.FindAsync(projectState, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 321await projectStateChecksums.FindAsync(projectState, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 473await ChecksumCollection.FindAsync(assetPath, state.DocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 474await ChecksumCollection.FindAsync(assetPath, state.AdditionalDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false); 475await ChecksumCollection.FindAsync(assetPath, state.AnalyzerConfigDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
Workspace\Solution\TextLoader.cs (1)
123await Task.Delay(RetryDelay, cancellationToken).ConfigureAwait(false);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.RecoverableText.cs (1)
148await recoverableText.SaveAsync(sourceText, cancellationToken).ConfigureAwait(false);
Workspace\Workspace.cs (2)
590await ScheduleTask(EventArgs.Empty, handlerSet).ConfigureAwait(false); 718}, cancellationToken, TaskCreationOptions.None, _taskSchedulerProvider.CurrentContextScheduler).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
MSBuild\BuildHostProcessManager.cs (4)
128await buildHostProcess.ConnectAsync(pipeName).ConfigureAwait(false); 141await buildHostProcess.BuildHost.ConfigureGlobalStateAsync(_knownCommandLineParserLanguages, _globalMSBuildProperties, _binaryLogPathProvider?.GetNewLogPath(), _maxNodeCount, cancellationToken).ConfigureAwait(false); 471await pipeClient.ConnectAsync(timeout: 60_000).ConfigureAwait(false); 523await BuildHost.ShutdownAsync(CancellationToken.None).ConfigureAwait(false);
Rpc\RemoteProjectFile.cs (1)
64=> await _client.InvokeAsync(_remoteProjectFileTargetObject, nameof(IProjectFile.Dispose), parameters: [], CancellationToken.None).ConfigureAwait(false);
Rpc\RemoteProjectInstance.cs (1)
43=> await _client.InvokeAsync(_remoteProjectInstanceTargetObject, nameof(IProjectInstance.Dispose), parameters: [], CancellationToken.None).ConfigureAwait(false);
Rpc\RpcClient.cs (1)
177await _stream.WriteAsync(requestJsonBytes, 0, requestJsonBytes.Length, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Build\ProjectBuildManager.cs (1)
142await stream.CopyToAsync(readStream, bufferSize: 81920, cancellationToken).ConfigureAwait(false);
Program.cs (2)
41await pipeServer.WaitForConnectionAsync().ConfigureAwait(false); 65await server.RunAsync().ConfigureAwait(false);
Rpc\RpcMethodInvoker.cs (1)
48await task.ConfigureAwait(false);
Rpc\RpcServer.cs (3)
131await Task.WhenAll(remainingTasks).ConfigureAwait(false); 197await _streamWriter.WriteLineAsync(responseJson).ConfigureAwait(false); 198await _streamWriter.FlushAsync().ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Deployment.DotNet.Releases (7)
Product.cs (1)
183await Utils.GetLatestFileAsync(path, downloadLatest, ReleasesJson).ConfigureAwait(false);
ProductCollection.cs (1)
101await Utils.GetLatestFileAsync(path, downloadLatest, ReleasesIndexDefaultUrl).ConfigureAwait(false);
ReleaseFile.cs (1)
118await Utils.DownloadFileAsync(Address, tempPath).ConfigureAwait(false);
Utils.cs (4)
60await source.CopyToAsync(destination).ConfigureAwait(false); 68await httpResponse.Content.CopyToAsync(stream).ConfigureAwait(false); 142await DownloadFileAsync(address, path).ConfigureAwait(false); 146await DownloadFileAsync(address, path).ConfigureAwait(false);
Microsoft.Diagnostics.NETCore.Client (33)
DiagnosticsIpc\IpcAdvertise.cs (1)
106await stream.WriteAsync(buffer, 0, index, token).ConfigureAwait(false);
DiagnosticsIpc\IpcClient.cs (1)
81await WriteAsync(stream, message, cancellationToken).ConfigureAwait(false);
DiagnosticsIpc\IpcServerTransport.cs (1)
131await _stream.WaitForConnectionAsync(linkedSource.Token).ConfigureAwait(false);
DiagnosticsIpc\IpcSocket.cs (1)
76await Task.Factory.FromAsync(beginConnect, EndConnect, this).ConfigureAwait(false);
DiagnosticsIpc\IpcTransport.cs (2)
117await namedPipe.ConnectAsync(int.MaxValue, token).ConfigureAwait(false); 124await socket.ConnectAsync(new IpcUnixDomainSocketEndPoint(config.Address), token).ConfigureAwait(false);
DiagnosticsIpc\ProcessEnvironment.cs (1)
38await continuation.CopyToAsync(memoryStream, CopyBufferSize, token).ConfigureAwait(false);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (23)
135await Task.Delay(IsStreamConnectedTimeoutMs, token).ConfigureAwait(false); 471await ConnectAsyncInternal(clientSocket, clientTcpEndPoint, connectTokenSource.Token).ConfigureAwait(false); 503await Task.Delay(TcpClientRetryTimeoutMs, token).ConfigureAwait(false); 523await Task.Factory.FromAsync(beginConnect, clientSocket.EndConnect, this).ConfigureAwait(false); 652await namedPipe.ConnectAsync(IpcClientTimeoutMs, token).ConfigureAwait(false); 684await unixDomainSocket.ConnectAsync(new IpcUnixDomainSocketEndPoint(_ipcClientPath), token).ConfigureAwait(false); 701await Task.Delay(IpcClientRetryTimeoutMs, token).ConfigureAwait(false); 823await Task.WhenAll(netServerStreamTask, checkIpcStreamTask).ConfigureAwait(false); 860await Task.WhenAll(ipcServerStreamTask, checkTcpStreamTask).ConfigureAwait(false); 1006await Task.WhenAll(tcpClientStreamTask, checkIpcStreamTask).ConfigureAwait(false); 1140await Task.WhenAll(ipcClientStreamTask, checkTcpStreamTask).ConfigureAwait(false); 1164await IpcAdvertise.SerializeAsync(ipcClientStream, _tcpServerRouterFactory.RuntimeInstanceId, (ulong)_tcpServerRouterFactory.RuntimeProcessId, token).ConfigureAwait(false); 1259await UpdateRuntimeInfo(token).ConfigureAwait(false); 1285await Task.WhenAll(ipcClientStreamTask, checkTcpStreamTask).ConfigureAwait(false); 1309await IpcAdvertise.SerializeAsync(ipcClientStream, _runtimeInstanceId, _runtimeProcessId, token).ConfigureAwait(false); 1365await Task.WhenAll(readTask, checkTcpStreamTask).ConfigureAwait(false); 1390await tcpClientStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false); 1413await tcpClientStream.WriteAsync(buffer, 0, buffer.Length, token).ConfigureAwait(false); 1506await Task.WhenAll(runningTasks.ToArray()).ConfigureAwait(false); 1573await _frontendStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false); 1575await _frontendStream.FlushAsync().ConfigureAwait(false); 1616await _backendStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false); 1618await _backendStream.FlushAsync().ConfigureAwait(false);
DiagnosticsServerRouter\DiagnosticsServerRouterRunner.cs (2)
65await routerFactory.Start(token).ConfigureAwait(false); 159await (routerFactory?.Stop()).ConfigureAwait(false);
ReversedServer\ReversedDiagnosticsServer.cs (1)
128await _acceptTransportTask.ConfigureAwait(false);
Microsoft.DotNet.Arcade.Sdk (2)
src\DownloadFile.cs (2)
196await httpResponse.Content.CopyToAsync(outStream).ConfigureAwait(false); 220await Tasks.Task.Delay(RetryDelayMilliseconds).ConfigureAwait(false);
Microsoft.DotNet.Cli.Telemetry (2)
PersistentStorageLogExporter.cs (1)
109await uploader.DrainAsync(_drainCts.Token).ConfigureAwait(false);
PersistentStorageTraceExporter.cs (1)
117await uploader.DrainAsync(_drainCts.Token).ConfigureAwait(false);
Microsoft.Extensions.AI (4)
ChatRouting\SemanticRoutingChatClient.cs (1)
308await _indexGate.WaitAsync(cancellationToken).ConfigureAwait(false);
Realtime\FunctionInvokingRealtimeClientSession.cs (1)
204await _innerSession.SendAsync(resultMessage, cancellationToken).ConfigureAwait(false);
Realtime\LoggingRealtimeClientSession.cs (1)
95await _innerSession.SendAsync(message, cancellationToken).ConfigureAwait(false);
Realtime\OpenTelemetryRealtimeClientSession.cs (1)
192await _innerSession.SendAsync(message, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions (14)
Contents\DataContent.cs (2)
193cancellationToken).ConfigureAwait(false); 247await fileStream.WriteAsync(array.Array, array.Offset, array.Count, cancellationToken).ConfigureAwait(false);
Files\HostedFileClientExtensions.cs (1)
134cancellationToken).ConfigureAwait(false);
Files\HostedFileDownloadStream.cs (1)
105cancellationToken).ConfigureAwait(false);
Functions\AIFunctionFactory.cs (9)
1056await ((Task)ThrowIfNullResult(result)).ConfigureAwait(true); 1063await ((Task)ThrowIfNullResult(result)).ConfigureAwait(true); 1101await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 1113await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 1122await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 1141await task.ConfigureAwait(true); 1154await task.ConfigureAwait(true); 1164await task.ConfigureAwait(true); 1199await JsonSerializer.SerializeAsync(stream, result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\FilePolyfills\FilePolyfills.cs (1)
76await stream.WriteAsync(byteArray, 0, byteArray.Length, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions.Tests (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\FilePolyfills\FilePolyfills.cs (1)
76await stream.WriteAsync(byteArray, 0, byteArray.Length, cancellationToken).ConfigureAwait(false);
TestRealtimeClientSession.cs (1)
59await Task.CompletedTask.ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation (1)
Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Console (4)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Program.cs (1)
43await logger.DisplayTelemetryOptOutMessageIfNeededAsync().ConfigureAwait(false);
Telemetry\TelemetryConstants.cs (1)
167await File.WriteAllBytesAsync(_firstUseSentinelFilePath, []).ConfigureAwait(false);
Utilities\LoggerExtensions.cs (1)
59await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.NLP (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Quality (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Reporting (13)
Formats\Html\HtmlReportWriter.cs (4)
55await writer.WriteAsync(HtmlTemplateBefore.AsMemory(), cancellationToken).ConfigureAwait(false); 56await writer.WriteAsync(htmlEncodedJson.AsMemory(), cancellationToken).ConfigureAwait(false); 57await writer.WriteAsync(HtmlTemplateAfter.AsMemory(), cancellationToken).ConfigureAwait(false); 58await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
Formats\Json\JsonReportWriter.cs (1)
49cancellationToken).ConfigureAwait(false);
ResponseCachingChatClient.cs (2)
100await base.WriteCacheAsync(key, value, cancellationToken).ConfigureAwait(false); 125await base.WriteCacheStreamingAsync(key, value, cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResponseCache.CacheEntry.cs (1)
77cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResponseCache.cs (4)
90await RemoveAsync(key, cancellationToken).ConfigureAwait(false); 175await entry.WriteAsync(entryFilePath, cancellationToken: cancellationToken).ConfigureAwait(false); 215await entry.WriteAsync(entryFilePath, cancellationToken: cancellationToken).ConfigureAwait(false); 218await File.WriteAllBytesAsync(contentsFilePath, value, cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResultStore.cs (1)
114cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (5)
Storage\AzureStorageResponseCache.CacheEntry.cs (1)
90cancellationToken).ConfigureAwait(false);
Storage\AzureStorageResponseCache.cs (3)
78await RemoveAsync(key, cancellationToken).ConfigureAwait(false); 127await entry.WriteAsync(entryClient, cancellationToken: cancellationToken).ConfigureAwait(false); 177await entry.WriteAsync(entryClient, cancellationToken: cancellationToken).ConfigureAwait(false);
Storage\AzureStorageResultStore.cs (1)
170cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyService.cs (1)
385await Task.Delay(InitialDelayInMilliseconds * attempts, cancellationToken).ConfigureAwait(false);
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.OpenAI (19)
OpenAIRealtimeClient.cs (1)
66await session.SendAsync(new SessionUpdateRealtimeClientMessage(options), cancellationToken).ConfigureAwait(false);
OpenAIRealtimeClientSession.cs (18)
91await _sessionClient.ConfigureTranscriptionSessionAsync(rawTransOptions, cancellationToken).ConfigureAwait(false); 96await _sessionClient.ConfigureTranscriptionSessionAsync(transOpts, cancellationToken).ConfigureAwait(false); 101await _sessionClient.ConfigureConversationSessionAsync(convOpts, cancellationToken).ConfigureAwait(false); 123await UpdateSessionAsync(sessionUpdate.Options, cancellationToken).ConfigureAwait(false); 127await SendResponseCreateAsync(responseCreate, cancellationToken).ConfigureAwait(false); 131await SendConversationItemCreateAsync(itemCreate, cancellationToken).ConfigureAwait(false); 135await SendInputAudioAppendAsync(audioAppend, cancellationToken).ConfigureAwait(false); 142await _sessionClient.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 146await _sessionClient.CommitPendingAudioAsync(cancellationToken).ConfigureAwait(false); 152await SendRawCommandAsync(message, cancellationToken).ConfigureAwait(false); 294await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 298await _sessionClient!.StartResponseAsync(responseOptions, cancellationToken).ConfigureAwait(false); 328await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 332await _sessionClient!.AddItemAsync(sdkItem, cancellationToken).ConfigureAwait(false); 348await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 352await _sessionClient!.SendInputAudioAsync(audioData, cancellationToken).ConfigureAwait(false); 360await _sessionClient!.SendCommandAsync(sdkCmd, cancellationToken).ConfigureAwait(false); 379await _sessionClient!.SendCommandAsync(BinaryData.FromString(jsonString), null).ConfigureAwait(false);
Microsoft.Extensions.AI.Templates.Tests (2)
TestCommand.cs (2)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false); 103await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
Microsoft.Extensions.AI.Tests (3)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestRealtimeClientSession.cs (1)
59await Task.CompletedTask.ConfigureAwait(false);
Realtime\FunctionInvokingRealtimeClientTests.cs (2)
462await Task.Delay(50).ConfigureAwait(false); 659await Task.CompletedTask.ConfigureAwait(false);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
311await System.Threading.Tasks.Task.Delay(1, CancellationToken.None).ConfigureAwait(false);
Microsoft.Extensions.Caching.SqlServer (7)
DatabaseOperations.cs (3)
73await connection.OpenAsync(token).ConfigureAwait(false); 188await connection.OpenAsync(token).ConfigureAwait(false); 284await connection.OpenAsync(token).ConfigureAwait(false);
SqlServerCache.cs (4)
141await _dbOperations.RefreshCacheItemAsync(key, token).ConfigureAwait(false); 163await _dbOperations.DeleteCacheItemAsync(key, token).ConfigureAwait(false); 210await _dbOperations.SetCacheItemAsync(key, new(value), options, token).ConfigureAwait(false); 228await _dbOperations.SetCacheItemAsync(key, Linearize(value, out var lease), options, token).ConfigureAwait(false);
Microsoft.Extensions.Caching.StackExchangeRedis (5)
RedisCache.cs (5)
231await cache.HashSetAsync(prefixedKey, fields).ConfigureAwait(false); 238).ConfigureAwait(false); 329await _connectionLock.WaitAsync(token).ConfigureAwait(false); 455await RefreshAsync(cache, key, absExpr, sldExpr.GetValueOrDefault(), token).ConfigureAwait(false); 781await RefreshAsync(cache, key, absExpr, sldExpr.GetValueOrDefault(), token).ConfigureAwait(false);
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
39await Task.Delay(Source.ReloadDelay).ConfigureAwait(false);
Microsoft.Extensions.DataIngestion (7)
IngestionPipeline.cs (1)
190await _writer.WriteAsync(chunks, cancellationToken).ConfigureAwait(false);
Processors\ImageAlternativeTextEnricher.cs (3)
53await ProcessAsync(batch, cancellationToken).ConfigureAwait(false); 69await ProcessAsync(batch, cancellationToken).ConfigureAwait(false); 79await ProcessAsync(batch, cancellationToken).ConfigureAwait(false);
Writers\VectorStoreWriter.cs (3)
70await _vectorStoreCollection.EnsureCollectionExistsAsync(cancellationToken).ConfigureAwait(false); 96await _vectorStoreCollection.UpsertAsync(record, cancellationToken).ConfigureAwait(false); 101await _vectorStoreCollection!.DeleteAsync(preExistingKeys, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.DataIngestion.MarkItDown (2)
MarkItDownReader.cs (2)
81await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 117.ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.HealthChecks (4)
HealthCheckPublisherHostedService.cs (4)
130await RunAsync(timerOptions).ConfigureAwait(false); 158await RunAsyncCore(timerOptions, cancellation.Token).ConfigureAwait(false); 201await Task.WhenAll(tasks).ConfigureAwait(false); 212await publisher.PublishAsync(report, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes (2)
TcpEndpointProbesService.cs (2)
74await UpdateHealthStatusAsync(stoppingToken).ConfigureAwait(false); 75await TimeProvider.Delay(_options.HealthAssessmentPeriod, stoppingToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitorService.cs (2)
127await _timeProvider.Delay(_samplingInterval, cancellationToken).ConfigureAwait(false); 143await PublishUtilizationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
258await WaitForMeasurementsAsync(minCount, cancellationTokenSource.Token).ConfigureAwait(false);
Microsoft.Extensions.DotNetDeltaApplier (5)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\Listener.cs (3)
57await ReceiveAndApplyUpdatesAsync(initialUpdates: false, cancellationToken).ConfigureAwait(false); 82await ReceiveAndApplyUpdatesAsync(initialUpdates: true, cancellationToken).ConfigureAwait(false); 164await _messageToClientLock.WaitAsync(cancellationToken).ConfigureAwait(false);
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\WebSocketTransport.cs (2)
61await _webSocket.ConnectAsync(new Uri(serverUrl), connectCts.Token).ConfigureAwait(false); 84cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Hosting (13)
Internal\Host.cs (13)
86await _hostLifetime.WaitForStartAsync(cancellationToken).ConfigureAwait(false); 141await asyncValidator.ValidateAsync(cancellationToken).ConfigureAwait(false); 205(service, token) => service.StartingAsync(token)).ConfigureAwait(false); 215await service.StartAsync(token).ConfigureAwait(false); 226}).ConfigureAwait(false); 235(service, token) => service.StartedAsync(token)).ConfigureAwait(false); 281await backgroundTask.ConfigureAwait(false); 352(service, token) => service.StoppingAsync(token)).ConfigureAwait(false); 361service.StopAsync(token)).ConfigureAwait(false); 367service.StoppedAsync(token)).ConfigureAwait(false); 378await _hostLifetime.StopAsync(cancellationToken).ConfigureAwait(false); 489await groupedTasks.ConfigureAwait(false); 510await operation(service, token).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Abstractions (5)
HostingAbstractionsHostBuilderExtensions.cs (1)
33await host.StartAsync(cancellationToken).ConfigureAwait(false);
HostingAbstractionsHostExtensions.cs (4)
35await host.StopAsync(cts.Token).ConfigureAwait(false); 67await host.StartAsync(token).ConfigureAwait(false); 69await host.WaitForShutdownAsync(token).ConfigureAwait(false); 115await host.StopAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Testing (8)
FakeHost.cs (4)
74await _host.StartAsync(cancellationTokenSource.Token).ConfigureAwait(false); 81await _host.StartAsync(linkedTokenSource.Token).ConfigureAwait(false); 97await _host.StopAsync(cancellationTokenSource.Token).ConfigureAwait(false); 104await _host.StopAsync(linkedTokenSource.Token).ConfigureAwait(false);
FakeHostingExtensions.cs (2)
38await service.StartAsync(cancellationToken).ConfigureAwait(false); 42await service.StopAsync(cancellationToken).ConfigureAwait(false);
HostTerminatorService.cs (2)
50await TimeProvider.Delay(_options.TimeToLive, stoppingToken).ConfigureAwait(false); 59await _host.StopAsync(combinedTokenSource.Token).ConfigureAwait(false);
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
129await Task.Run(Stop, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpClientLogger.cs (2)
79await _httpRequestReader.ReadRequestAsync(logRecord, request, requestHeadersBuffer, cancellationToken).ConfigureAwait(false); 179await _httpRequestReader.ReadResponseAsync(logRecord, response, responseHeadersBuffer, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
220var act = async () => await host.StartAsync().ConfigureAwait(false);
Microsoft.Extensions.Http.Resilience.Tests (1)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
310await ObserveOutputTasksAsync(standardOutputTask, standardErrorTask).ConfigureAwait(false);
Microsoft.Extensions.Identity.Core (58)
RoleManager.cs (7)
164await UpdateNormalizedRoleNameAsync(role).ConfigureAwait(false); 179await Store.SetNormalizedRoleNameAsync(role, NormalizeKey(name), CancellationToken).ConfigureAwait(false); 279await Store.SetRoleNameAsync(role, name, CancellationToken).ConfigureAwait(false); 280await UpdateNormalizedRoleNameAsync(role).ConfigureAwait(false); 330await claimStore.AddClaimAsync(role, claim, CancellationToken).ConfigureAwait(false); 349await claimStore.RemoveClaimAsync(role, claim, CancellationToken).ConfigureAwait(false); 432await UpdateNormalizedRoleNameAsync(role).ConfigureAwait(false);
UserManager.cs (51)
505await UpdateSecurityStampInternal(user).ConfigureAwait(false); 513await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false); 515await UpdateNormalizedUserNameAsync(user).ConfigureAwait(false); 516await UpdateNormalizedEmailAsync(user).ConfigureAwait(false); 701await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false); 730await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false); 731await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1001await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1098await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false); 1099await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1147await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false); 1199await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false); 1230await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false); 1273await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false); 1334await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1377await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1407await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1468await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1534await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false); 1535await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false); 1536await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1596await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false); 1648await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1718await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false); 1719await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1720await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1755await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false); 1756await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false); 1757await UpdateSecurityStampInternal(user).ConfigureAwait(false); 1805await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false); 1806await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1807await UpdateSecurityStampInternal(user).ConfigureAwait(false); 2073await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false); 2074await UpdateSecurityStampInternal(user).ConfigureAwait(false); 2124await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false); 2198await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false); 2226CancellationToken).ConfigureAwait(false); 2227await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2268await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2357await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false); 2385await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false); 2421await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false); 2422await UpdateSecurityStampInternal(user).ConfigureAwait(false); 2460await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false); 2647await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false); 2733await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false); 2822await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false); 2848await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false); 2849await UpdateSecurityStampInternal(user).ConfigureAwait(false); 3001await UpdateNormalizedUserNameAsync(user).ConfigureAwait(false); 3002await UpdateNormalizedEmailAsync(user).ConfigureAwait(false);
Microsoft.Extensions.Identity.Stores (3)
UserStoreBase.cs (3)
838await AddUserTokenAsync(CreateUserToken(user, loginProvider, name, value)).ConfigureAwait(false); 863await RemoveUserTokenAsync(entry).ConfigureAwait(false); 979await ReplaceCodesAsync(user, updatedCodes, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Logging.AzureAppServices (4)
BatchingLoggerProvider.cs (2)
110await WriteMessagesAsync(_currentBatch, _cancellationTokenSource.Token).ConfigureAwait(false); 121await IntervalAsync(_interval, _cancellationTokenSource.Token).ConfigureAwait(false);
BlobLoggerProvider.cs (1)
82await blob.AppendAsync(buffer, cancellationToken).ConfigureAwait(false);
FileLoggerProvider.cs (1)
56await streamWriter.WriteAsync(item.Message).ConfigureAwait(false);
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
85await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Options (1)
ValidateOnStart.cs (1)
71await asyncValidator(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Primitives (1)
ChangeToken.cs (1)
266await consumerTask.ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery (11)
Http\HttpServiceEndpointResolver.cs (3)
150await Task.WhenAll(cleanupTasks).ConfigureAwait(false); 225await DisposeAsyncCore().ConfigureAwait(false); 242await DisposeAsyncCore().ConfigureAwait(false);
parent\parent\Shared\FxPolyfills\Task.cs (4)
22await task.ConfigureAwait(false); 26await task.ConfigureAwait(true); 31await task.ConfigureAwait(false); 37await task.ConfigureAwait(false);
ServiceEndpointResolver.cs (3)
159await Task.WhenAll(cleanupTasks).ConfigureAwait(false); 217await DisposeAsyncCore().ConfigureAwait(false); 234await DisposeAsyncCore().ConfigureAwait(false);
ServiceEndpointWatcher.cs (1)
85await RefreshAsync(force: false).WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Abstractions (4)
parent\parent\Shared\FxPolyfills\Task.cs (4)
22await task.ConfigureAwait(false); 26await task.ConfigureAwait(true); 31await task.ConfigureAwait(false); 37await task.ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProviderBase.cs (1)
83await resolveTask.WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
219await sem.WaitAsync(ct).ConfigureAwait(false);
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
FakeTimeProviderTests.cs (1)
558await provider.Delay(TimeSpan.FromSeconds(delay)).ConfigureAwait(false);
Microsoft.Extensions.VectorData.Abstractions (1)
VectorStoreCollection.cs (1)
143await DeleteAsync(key, cancellationToken).ConfigureAwait(false);
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.Logging.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.Metrics.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
43await ConvertComImportToGeneratedComInterfaceAsync(editor, node, mayRequireAdditionalWork, addStringMarshalling, ct).ConfigureAwait(false);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (3)
109await solutionBasedFix(editor, documentId, ct).ConfigureAwait(false); 151await fix.ApplyFix(solutionEditor, doc.Id, ct).ConfigureAwait(false); 202await solutionBasedFix(solutionEditor, documentId, ct).ConfigureAwait(false);
Microsoft.Interop.LibraryImportGenerator (7)
Analyzers\ConvertToLibraryImportFixer.cs (4)
94ct).ConfigureAwait(false); 116ct).ConfigureAwait(false); 131ct).ConfigureAwait(false); 150ct).ConfigureAwait(false);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (3)
109await solutionBasedFix(editor, documentId, ct).ConfigureAwait(false); 151await fix.ApplyFix(solutionEditor, doc.Id, ct).ConfigureAwait(false); 202await solutionBasedFix(solutionEditor, documentId, ct).ConfigureAwait(false);
Microsoft.Maui (2)
Dispatching\DispatcherExtensions.cs (1)
88 await funcTask().ConfigureAwait(false);
TaskExtensions.cs (1)
36 await task.ConfigureAwait(false);
Microsoft.Maui.Controls (14)
Internals\ImageParser.cs (12)
203 await colorTable.ParseAsync(stream).ConfigureAwait(false); 273 await header.ParseAsync(stream, skipTypeIdentifier).ConfigureAwait(false); 479 await ParseNetscapeApplicationExtensionAsync(stream).ConfigureAwait(false); 483 await stream.SkipBlockAsync().ConfigureAwait(false); 504 await ParseGIFBitmapHeaderAsync(stream).ConfigureAwait(false); 513 await decoder.DecodeAsync(stream, _header.Width, _header.Height).ConfigureAwait(false); 519 await stream.SkipBlockAsync().ConfigureAwait(false); 526 await stream.SkipBlockAsync().ConfigureAwait(false); 542 await ParseApplicationExtensionAsync(stream).ConfigureAwait(false); 545 await stream.SkipBlockAsync().ConfigureAwait(false); 571 await currentBitmap.ParseImageDescriptorAsync(stream, decoder, previousBitmap, ignoreImageData).ConfigureAwait(false); 578 await currentBitmap.ParseExtensionAsync(stream).ConfigureAwait(false);
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
191 await SyncModalStackWhenPlatformIsReadyAsync().ConfigureAwait(false);
Shell\Shell.cs (1)
1277 await OnFlyoutItemSelectedAsync(shellItem, false).ConfigureAwait(false);
Microsoft.Maui.Essentials (1)
MainThread\MainThread.shared.cs (1)
115 await funcTask().ConfigureAwait(false);
Microsoft.Maui.Maps (1)
src\Core\src\TaskExtensions.cs (1)
36 await task.ConfigureAwait(false);
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
215await stream.CopyToAsync(fileStream).ConfigureAwait(false);
Microsoft.ML.Samples (1)
Dynamic\TensorFlow\ImageClassification.cs (1)
128await response.CopyToAsync(fs).ConfigureAwait(false);
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
128await response.CopyToAsync(fs).ConfigureAwait(false);
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
201await response.CopyToAsync(fs).ConfigureAwait(false);
Microsoft.ML.TestFrameworkCommon (2)
src\Common\tests\RetryHelper.cs (2)
94await test().ConfigureAwait(false); 106await Task.Delay((backoffFunc ?? _defaultBackoffFunc)(i)).ConfigureAwait(false);
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
94await test().ConfigureAwait(false); 106await Task.Delay((backoffFunc ?? _defaultBackoffFunc)(i)).ConfigureAwait(false);
Microsoft.ML.Tokenizers.Tests (2)
src\Common\tests\RetryHelper.cs (2)
94await test().ConfigureAwait(false); 106await Task.Delay((backoffFunc ?? _defaultBackoffFunc)(i)).ConfigureAwait(false);
Microsoft.NET.Build.Containers (79)
AuthHandshakeMessageHandler.cs (3)
491await postResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 535await tokenResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 624await Task.Delay(TimeSpan.FromSeconds(1.0 * Math.Pow(2, retryCount)), cancellationToken).ConfigureAwait(false);
ImagePublisher.cs (6)
32destinationImageReference.LocalRegistry!.LoadAsync).ConfigureAwait(false); 47Strings.ContainerBuilder_ImageUploadedToRegistry).ConfigureAwait(false); 76destinationImageReference.LocalRegistry!.LoadAsync).ConfigureAwait(false); 86Strings.ImageIndexUploadedToRegistry).ConfigureAwait(false); 113await loadFunc(image, sourceImageReference, destinationImageReference, cancellationToken).ConfigureAwait(false); 155cancellationToken).ConfigureAwait(false);
LocalDaemons\ArchiveFileRegistry.cs (1)
51await writeStreamFunc(image, sourceReference, destinationReference, fileStream, cancellationToken).ConfigureAwait(false);
LocalDaemons\ContainerArchive.cs (22)
41await WriteDockerImageToStreamAsync(image, sourceReference, destinationReference, imageStream, cancellationToken).ConfigureAwait(false); 45await WriteOciImageToStreamAsync(image, sourceReference, destinationReference, imageStream, cancellationToken).ConfigureAwait(false); 65.ConfigureAwait(false); 68await WriteImageConfigAsync(writer, image, configTarballPath, cancellationToken).ConfigureAwait(false); 70.ConfigureAwait(false); 83await WriteOciImageToBlobsAsync(writer, image, sourceReference, cancellationToken).ConfigureAwait(false); 84await WriteIndexJsonForOciImageAsync(writer, image, destinationReference, cancellationToken).ConfigureAwait(false); 85await WriteOciLayoutAsync(writer, cancellationToken).ConfigureAwait(false); 101await WriteOciImageToBlobsAsync(writer, image, sourceReference, cancellationToken).ConfigureAwait(false); 105.ConfigureAwait(false); 106await WriteOciLayoutAsync(writer, cancellationToken).ConfigureAwait(false); 132await writer.WriteEntryAsync(localPath, layerTarballPath, cancellationToken).ConfigureAwait(false); 145await writer.WriteEntryAsync(configEntry, cancellationToken).ConfigureAwait(false); 179await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 194await writer.WriteEntryAsync(layoutEntry, cancellationToken).ConfigureAwait(false); 210await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 241await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 255.ConfigureAwait(false); 256await WriteImageConfigAsync(writer, image, $"{BlobsPath}/{GetRequiredImageSha(image)}", cancellationToken).ConfigureAwait(false); 257await WriteManifestForOciImageAsync(writer, image, cancellationToken).ConfigureAwait(false); 282await writer.WriteEntryAsync(manifestListEntry, cancellationToken).ConfigureAwait(false); 301await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false);
LocalDaemons\ContainerRuntime.cs (2)
89await runtime.LoadAsync(image, sourceReference, destinationReference, cancellationToken).ConfigureAwait(false); 101await runtime.LoadAsync(multiArchImage, sourceReference, destinationReference, cancellationToken).ConfigureAwait(false);
LocalDaemons\ContainerRuntimeOperations.cs (3)
67.ConfigureAwait(false); 74await processCancellation.CancelAsync().ConfigureAwait(false); 109.ConfigureAwait(false);
LocalDaemons\ContainerRuntimes.cs (1)
289cancellationToken).ConfigureAwait(false);
LocalDaemons\DockerCli.cs (22)
117.ConfigureAwait(false); 123await loadProcess.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 317.ConfigureAwait(false); 321.ConfigureAwait(false); 325.ConfigureAwait(false); 348await writer.WriteEntryAsync(localPath, layerTarballPath, cancellationToken).ConfigureAwait(false); 374await writer.WriteEntryAsync(configEntry, cancellationToken).ConfigureAwait(false); 406await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 422.ConfigureAwait(false); 425.ConfigureAwait(false); 428.ConfigureAwait(false); 443await writer.WriteEntryAsync(layoutEntry, cancellationToken).ConfigureAwait(false); 461await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 486await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 497.ConfigureAwait(false); 500.ConfigureAwait(false); 503.ConfigureAwait(false); 520.ConfigureAwait(false); 524.ConfigureAwait(false); 527.ConfigureAwait(false); 549await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 568await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false);
Registry\DefaultBlobOperations.cs (1)
77await response.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false);
Registry\DefaultBlobUploadOperations.cs (3)
37await finalizeResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 57await pushResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 117await patchResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false);
Registry\DefaultManifestOperations.cs (2)
63await putResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 70await response.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false);
Registry\Registry.cs (11)
455.ConfigureAwait(false); 472await Task.Delay(_retryDelayProvider(), cancellationToken).ConfigureAwait(false); 488await UploadBlobAsync(repository, digest, contents, cancellationToken).ConfigureAwait(false); 577await _registryAPI.Blob.Upload.CompleteAsync(finalChunkUri.UploadUri, digest, cancellationToken).ConfigureAwait(false); 592await _registryAPI.Manifest.PutAsync(destinationImageReference.Repository, tag, multiArchImage.ImageIndex, multiArchImage.ImageIndexMediaType, cancellationToken).ConfigureAwait(false); 638await destinationRegistry.PushLayerAsync(Layer.FromDescriptor(descriptor), destination.Repository, cancellationToken).ConfigureAwait(false); 652await Task.WhenAll(builtImage.LayerDescriptors.Select(descriptor => uploadLayerFunc(descriptor))).ConfigureAwait(false); 658await uploadLayerFunc(descriptor).ConfigureAwait(false); 667await UploadBlobAsync(destination.Repository, configDigest, stringStream, cancellationToken).ConfigureAwait(false); 681await _registryAPI.Manifest.PutAsync(destination.Repository, tag, builtImage.Manifest, builtImage.ManifestMediaType, cancellationToken).ConfigureAwait(false); 688await _registryAPI.Manifest.PutAsync(destination.Repository, builtImage.ManifestDigest, builtImage.Manifest, builtImage.ManifestMediaType, cancellationToken).ConfigureAwait(false);
Tasks\CreateImageIndex.cs (1)
81.ConfigureAwait(false);
Tasks\CreateNewImage.cs (1)
263.ConfigureAwait(false);
Microsoft.NET.Sdk.Razor.Tasks (9)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
233await request.WriteAsync(client.Stream, cancellationToken).ConfigureAwait(false);
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (4)
128await ServerProtocol.ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 142await ServerProtocol.ReadAllAsync(inStream, requestBuffer, length, cancellationToken).ConfigureAwait(false); 200.ConfigureAwait(false); 207.ConfigureAwait(false);
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerResponse.cs (4)
70.ConfigureAwait(false); 77.ConfigureAwait(false); 94await ServerProtocol.ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 105.ConfigureAwait(false);
Microsoft.TemplateEngine.Cli (15)
Commands\BaseCommand.cs (2)
167await HandleDebugRebuildCacheAsync(args, templatePackageManager, cancellationToken).ConfigureAwait(false); 251await HandleGlobalOptionsAsync(args, environmentSettings, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\create\InstantiateCommand.cs (1)
157await CheckTemplatesWithSubCommandName(instantiateArgs, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\create\TemplateCommand.cs (1)
195await Task.WhenAll(tasksToWait).ConfigureAwait(false);
Commands\details\DetailsCommand.cs (1)
32await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\install\InstallCommand.cs (1)
22await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\list\ListCommand.cs (1)
22await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\search\SearchCommand.cs (1)
22await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\uninstall\UninstallCommand.cs (1)
22await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
Commands\update\UpdateCommand.cs (1)
22await CheckTemplatesWithSubCommandName(args, templatePackageManager, cancellationToken).ConfigureAwait(false);
TemplatePackageCoordinator.cs (4)
270cancellationToken).ConfigureAwait(false); 340cancellationToken).ConfigureAwait(false); 365await _templatePackageDisplay.DisplayInstalledTemplatePackagesAsync(_templatePackageManager, args, cancellationToken).ConfigureAwait(false); 389await _templatePackageManager.RebuildTemplateCacheAsync(cancellationToken).ConfigureAwait(false);
TemplatePackageDisplay.cs (1)
113await EvaluateAndDisplayConstraintsAsync(constraintsManager, templates, cancellationToken).ConfigureAwait(false);
Microsoft.TemplateEngine.Edge (13)
BuiltInManagedProvider\GlobalSettings.cs (2)
109await Task.Delay(MillisecondsInterval, cancellationToken).ConfigureAwait(false); 149await Task.Delay(MillisecondsInterval, cancellationToken).ConfigureAwait(false);
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (5)
97await UpdateTemplatePackagesMetadataAsync(result.Select(r => r.TemplatePackage), cancellationToken).ConfigureAwait(false); 155await _globalSettings.SetInstalledTemplatePackagesAsync(packages, cancellationToken).ConfigureAwait(false); 182await _globalSettings.SetInstalledTemplatePackagesAsync(packagesInSettings, cancellationToken).ConfigureAwait(false); 195await _globalSettings.SetInstalledTemplatePackagesAsync(packages, cancellationToken).ConfigureAwait(false); 229await _globalSettings.SetInstalledTemplatePackagesAsync(updatedCachePackages, cancellationToken).ConfigureAwait(false);
Constraints\WorkloadConstraintFactory.cs (1)
103await Mutex.WaitAsync(token).ConfigureAwait(false);
Settings\TemplatePackageManager.cs (1)
365})).ConfigureAwait(false);
TemplateConstraintManager.cs (4)
57await CancellableWhenAll(constraintsToInitialize.Select(c => c.Task), cancellationToken).ConfigureAwait(false); 105await CancellableWhenAll(new[] { task }, cancellationToken).ConfigureAwait(false); 168await CancellableWhenAll(notCompletedTasks, cancellationToken).ConfigureAwait(false); 236await Task.WhenAll(tasks).ConfigureAwait(false);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
RunnableProjectGenerator.cs (5)
64await loadedTemplate.ValidateAsync(ValidationScope.Instantiation, cancellationToken).ConfigureAwait(false); 132await templateConfig.EvaluateBindSymbolsAsync(environmentSettings, variables, cancellationToken).ConfigureAwait(false); 271Task.Run(async () => await loadedTemplate.ValidateAsync(ValidationScope.Instantiation, CancellationToken.None).ConfigureAwait(false)).GetAwaiter().GetResult(); 308await runnableProjectConfig.EvaluateBindSymbolsAsync(environmentSettings, variables, cancellationToken).ConfigureAwait(false); 347await discoveredTemplate.ValidateAsync(ValidationScope.Scanning, cancellationToken).ConfigureAwait(false);
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
129await AcquireFileFromCloudAsync(preferredMetadataLocation, cancellationToken).ConfigureAwait(false);
Microsoft.TestPlatform.CommunicationUtilities (1)
SocketClient.cs (1)
111.ConfigureAwait(false);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (34)
VsTestConsoleRequestSender.cs (6)
136_communicationManager.AcceptClientAsync(), timeoutSource.Token).ConfigureAwait(false); 198eventHandler).ConfigureAwait(false); 248null).ConfigureAwait(false); 298null).ConfigureAwait(false); 352customHostLauncher).ConfigureAwait(false); 406customHostLauncher).ConfigureAwait(false);
VsTestConsoleWrapper.cs (28)
620await EnsureInitializedAsync().ConfigureAwait(false); 636.ConfigureAwait(false); 651discoveryEventsHandler).ConfigureAwait(false); 664await EnsureInitializedAsync().ConfigureAwait(false); 670discoveryEventsHandler).ConfigureAwait(false); 683testRunEventsHandler).ConfigureAwait(false); 698testRunEventsHandler).ConfigureAwait(false); 715new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 734await EnsureInitializedAsync().ConfigureAwait(false); 741telemetryEventsHandler).ConfigureAwait(false); 754testRunEventsHandler).ConfigureAwait(false); 769testRunEventsHandler).ConfigureAwait(false); 786new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 805await EnsureInitializedAsync().ConfigureAwait(false); 812telemetryEventsHandler).ConfigureAwait(false); 827customTestHostLauncher).ConfigureAwait(false); 844customTestHostLauncher).ConfigureAwait(false); 863customTestHostLauncher).ConfigureAwait(false); 883await EnsureInitializedAsync().ConfigureAwait(false); 891customTestHostLauncher).ConfigureAwait(false); 906customTestHostLauncher).ConfigureAwait(false); 923customTestHostLauncher).ConfigureAwait(false); 942customTestHostLauncher).ConfigureAwait(false); 962await EnsureInitializedAsync().ConfigureAwait(false); 970customTestHostLauncher).ConfigureAwait(false); 985await EnsureInitializedAsync().ConfigureAwait(false); 992cancellationToken).ConfigureAwait(false); 1034await StartSessionAsync().ConfigureAwait(false);
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (2)
72Await pipeClient.ConnectAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext:=False) 102Await pipeServer.WaitForConnectionAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext:=False)
NuGet.Protocol (1)
Utility\TimeoutUtility.cs (1)
67await getTask(timeoutToken).ConfigureAwait(false);
Pipelines.AppHost (16)
AppHost.cs (16)
89context.CancellationToken).ConfigureAwait(false); 96await getUserProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 104context.CancellationToken).ConfigureAwait(false); 124context.CancellationToken).ConfigureAwait(false); 131await getSubscriptionProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 139context.CancellationToken).ConfigureAwait(false); 159context.CancellationToken).ConfigureAwait(false); 166await getResourceGroupProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 174context.CancellationToken).ConfigureAwait(false); 197context.CancellationToken).ConfigureAwait(false); 201await assignRoleProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 209context.CancellationToken).ConfigureAwait(false); 216context.CancellationToken).ConfigureAwait(false); 223context.CancellationToken).ConfigureAwait(false); 275deployingContext.CancellationToken).ConfigureAwait(false); 320deployingContext.CancellationToken).ConfigureAwait(false);
Pipelines.Library (9)
DistributedApplicationPipelineExtensions.cs (9)
47context.CancellationToken).ConfigureAwait(false); 89cancellationToken).ConfigureAwait(false); 93await publishProcess.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 101cancellationToken).ConfigureAwait(false); 108cancellationToken).ConfigureAwait(false); 120cancellationToken).ConfigureAwait(false); 138cancellationToken).ConfigureAwait(false); 164cancellationToken).ConfigureAwait(false); 171cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.Analyzers (21)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
30await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false); 77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false); 238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)), 299source, callback, args.args, cancellationToken).ConfigureAwait(false)), 344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false); 367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false); 384await action(args, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
106_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 116_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
16/// is the same as one would expect for <see cref="Task.ConfigureAwait(bool)"/>. 19/// <param name="continueOnCapturedContext"><inheritdoc cref="Task.ConfigureAwait(bool)"/></param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
158await ProcessNextBatchAsync().ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
86await editAsync(editor).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
83model, container, namespaceSymbols, conflicts, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).ConfigureAwait(false); 178ReduceOneNodeOrTokenAsync).ConfigureAwait(false);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
153cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
48solutionEditor, parameter, fieldOrProperty, cancellationToken).ConfigureAwait(false);
rzc (11)
DefaultRequestDispatcher.cs (1)
352await response.WriteAsync(connection.Stream, cancellationToken).ConfigureAwait(false);
ServerProtocol\ServerConnection.cs (1)
233await request.WriteAsync(client.Stream, cancellationToken).ConfigureAwait(false);
ServerProtocol\ServerRequest.cs (4)
128await ServerProtocol.ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 142await ServerProtocol.ReadAllAsync(inStream, requestBuffer, length, cancellationToken).ConfigureAwait(false); 200.ConfigureAwait(false); 207.ConfigureAwait(false);
ServerProtocol\ServerResponse.cs (4)
70.ConfigureAwait(false); 77.ConfigureAwait(false); 94await ServerProtocol.ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 105.ConfigureAwait(false);
ShutdownCommand.cs (1)
51await request.WriteAsync(client.Stream, Cancelled).ConfigureAwait(false);
SimplePipelines.AppHost (6)
AppHost.cs (6)
16await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 21context.CancellationToken).ConfigureAwait(false); 34await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 39context.CancellationToken).ConfigureAwait(false); 52await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 57context.CancellationToken).ConfigureAwait(false);
Stress.AppHost (1)
CommandResources.cs (1)
1417await Task.WhenAll(commandTasks).ConfigureAwait(false);
System.Data.Common (13)
System\Data\Common\DbDataSource.cs (13)
39await connection.OpenAsync(cancellationToken).ConfigureAwait(false); 137await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 148await _connection.CloseAsync().ConfigureAwait(false); 190await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 201await _connection.CloseAsync().ConfigureAwait(false); 244await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 257await _connection.CloseAsync().ConfigureAwait(false); 396await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 407await _connection.CloseAsync().ConfigureAwait(false); 449await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 460await _connection.CloseAsync().ConfigureAwait(false); 503await _connection.OpenAsync(cancellationToken).ConfigureAwait(false); 516await _connection.CloseAsync().ConfigureAwait(false);
System.Diagnostics.Process (8)
System\Diagnostics\Process.cs (5)
1735await WaitUntilOutputEOF(cancellationToken).ConfigureAwait(false); 1758await tcs.Task.ConfigureAwait(false); 1763await WaitUntilOutputEOF(cancellationToken).ConfigureAwait(false); 1774await _output.EOF.WaitAsync(cancellationToken).ConfigureAwait(false); 1779await _error.EOF.WaitAsync(cancellationToken).ConfigureAwait(false);
System\Diagnostics\Process.Multiplexing.cs (3)
448await whenAll.ConfigureAwait(false); 565await outputTask.ConfigureAwait(false); 566await errorTask.ConfigureAwait(false);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
1396await Task.Delay(Math.Min(iterationDelay, 100)).ConfigureAwait(false);
System.Formats.Tar (6)
System\Formats\Tar\TarEntry.cs (1)
712await DataStream.CopyToAsync(fs, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarFile.cs (5)
567await CreateFromDirectoryInternalAsync(sourceDirectoryName, archive, includeBaseDirectory, leaveOpen: false, options, cancellationToken).ConfigureAwait(false); 586await writer.WriteEntryAsync(di.FullName, GetEntryNameForBaseDirectory(di.Name), cancellationToken).ConfigureAwait(false); 599await writer.WriteEntryAsync(fullpath, entryname, cancellationToken).ConfigureAwait(false); 688await ExtractToDirectoryInternalAsync(archive, destinationDirectoryFullPath, extractOptions, leaveOpen: false, cancellationToken).ConfigureAwait(false); 712await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryFullPath, overwriteFiles, pendingModes, directoryModificationTimes, hardLinkMode, cancellationToken).ConfigureAwait(false);
System.IO.Compression (49)
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
253await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 963await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false);
System\IO\Compression\WinZipAesStream.cs (9)
98await ReadAndValidateHeaderCore(isAsync: true, baseStream, keyMaterial, cancellationToken).ConfigureAwait(false); 450await ValidateAuthCodeAsync(cancellationToken).ConfigureAwait(false); 465await ValidateAuthCodeAsync(cancellationToken).ConfigureAwait(false); 532await WriteHeaderAsync(cancellationToken).ConfigureAwait(false); 597await FinishEncryptingAsync(isAsync: true, CancellationToken.None).ConfigureAwait(false); 627await WriteHeaderAsync(cancellationToken).ConfigureAwait(false); 636await WriteAuthCodeCoreAsync(isAsync, cancellationToken).ConfigureAwait(false); 640await _baseStream.FlushAsync(cancellationToken).ConfigureAwait(false); 668await _baseStream.FlushAsync(cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchive.Async.cs (15)
83await backingStream.CopyToAsync(stream, cancellationToken).ConfigureAwait(false); 95await zipArchive.ReadEndOfCentralDirectoryAsync(cancellationToken).ConfigureAwait(false); 99await zipArchive.EnsureCentralDirectoryReadAsync(cancellationToken).ConfigureAwait(false); 110await zipArchive.ReadEndOfCentralDirectoryAsync(cancellationToken).ConfigureAwait(false); 111await zipArchive.EnsureCentralDirectoryReadAsync(cancellationToken).ConfigureAwait(false); 115await entry.ThrowIfNotOpenableAsync(needToUncompress: false, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false); 166await entry.UnloadStreamsAsync().ConfigureAwait(false); 174await CloseStreamsAsync().ConfigureAwait(false); 208await ReadCentralDirectoryAsync(cancellationToken).ConfigureAwait(false); 246await lastEntry.ReadEncryptionSaltIfNeededAsync(cancellationToken).ConfigureAwait(false); 391await entry.LoadLocalHeaderExtraFieldIfNeededAsync(cancellationToken).ConfigureAwait(false); 394await entry.LoadCompressedBytesIfNeededAsync(cancellationToken).ConfigureAwait(false); 412await entry.WriteAndFinishLocalEntryAsync(forceWriteLocalEntry, cancellationToken).ConfigureAwait(false); 425await entry.WriteCentralDirectoryFileHeaderAsync(centralDirectoryEntryRequiresUpdate, cancellationToken).ConfigureAwait(false); 468await ZipEndOfCentralDirectoryBlock.WriteBlockAsync(_archiveStream, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory, _archiveComment, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (19)
271await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: false, cancellationToken).ConfigureAwait(false); 317await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false); 380await decompressor.CopyToAsync(_storedUncompressedData, cancellationToken).ConfigureAwait(false); 411await CloseStreamsAsync().ConfigureAwait(false); 412await WriteLocalFileHeaderAndDataIfNeededAsync(forceWrite, cancellationToken).ConfigureAwait(false); 413await UnloadStreamsAsync().ConfigureAwait(false); 439await CreateAesExtraField().WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 442await ZipGenericExtraField.WriteAllBlocksExcludingTagAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, WinZipAesExtraField.HeaderId, cancellationToken).ConfigureAwait(false); 447await ZipGenericExtraField.WriteAllBlocksAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 572await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false); 589await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false); 624await decompressed.CopyToAsync(_storedUncompressedData, cancellationToken).ConfigureAwait(false); 712await CreateAesExtraField().WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 715await ZipGenericExtraField.WriteAllBlocksExcludingTagAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, WinZipAesExtraField.HeaderId, cancellationToken).ConfigureAwait(false); 719await ZipGenericExtraField.WriteAllBlocksAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 775await _storedUncompressedData.CopyToAsync(crcStream, cancellationToken).ConfigureAwait(false); 837await _storedUncompressedData.CopyToAsync(crcStream, cancellationToken).ConfigureAwait(false); 860await WriteCrcAndSizesInLocalHeaderAsync(usedZip64InLH, cancellationToken).ConfigureAwait(false); 874await _storedUncompressedData.CopyToAsync(entryWriter, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.cs (1)
2505await _entry.WriteCrcAndSizesInLocalHeaderAsync(_usedZip64inLH, cancellationToken: default).ConfigureAwait(false);
System\IO\Compression\ZipBlocks.Async.cs (2)
32await field.WriteBlockAsync(stream, cancellationToken).ConfigureAwait(false); 52await field.WriteBlockAsync(stream, cancellationToken).ConfigureAwait(false);
System\IO\Compression\Zstandard\ZstandardStream.Compress.cs (1)
351await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
System.IO.Compression.Brotli (1)
System\IO\Compression\enc\BrotliStream.Compress.cs (1)
246await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
System.IO.Compression.ZipFile (15)
System\IO\Compression\ZipFile.Create.Async.cs (4)
456await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password, options.EncryptionMethod, cancellationToken).ConfigureAwait(false); 483await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password, options.EncryptionMethod, cancellationToken).ConfigureAwait(false); 502await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken: cancellationToken).ConfigureAwait(false); 516await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken: cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.Async.cs (4)
204await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false); 276await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, password, cancellationToken).ConfigureAwait(false); 435await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false); 494await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, password, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (1)
155await fs.CopyToAsync(es, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
82await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken: cancellationToken).ConfigureAwait(false); 100await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, options.OverwriteFiles, options.Password, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (4)
75await ExtractToFileCoreAsync(source, destinationFileName, overwrite, fileStreamOptions, password: default, usePassword: false, cancellationToken).ConfigureAwait(false); 93await ExtractToFileCoreAsync(source, destinationFileName, overwrite, fileStreamOptions, password, usePassword: true, cancellationToken).ConfigureAwait(false); 122await es.CopyToAsync(fs, cancellationToken).ConfigureAwait(false); 155await ExtractToFileAsync(source, fileDestinationPath, overwrite, password, cancellationToken).ConfigureAwait(false);
System.IO.Pipelines (3)
System\IO\Pipelines\StreamPipeReader.cs (2)
368await InnerStream.CopyToAsync(destination, tokenSource.Token).ConfigureAwait(false); 429await InnerStream.CopyToAsync(destination, tokenSource.Token).ConfigureAwait(false);
System\IO\Pipelines\StreamPipeWriter.cs (1)
344await InnerStream.FlushAsync(localToken).ConfigureAwait(false);
System.Memory.Data (1)
System\BinaryData.cs (1)
299await stream.CopyToAsync(memoryStream, bufferSize, cancellationToken).ConfigureAwait(false);
System.Net.Http (38)
System\Net\Http\CompressedContentCore.cs (1)
54await originalContent.CopyToAsync(compressionStream, context, cancellationToken).ConfigureAwait(false);
System\Net\Http\HttpClient.cs (3)
216await responseStream.CopyToAsync(buffer, cts.Token).ConfigureAwait(false); 294await responseStream.CopyToAsync(buffer, cts.Token).ConfigureAwait(false); 556await response.Content.LoadIntoBufferAsync(_maxResponseContentBufferSize, cts.Token).ConfigureAwait(false);
System\Net\Http\HttpContent.cs (2)
518await serializeToStreamTask.ConfigureAwait(false); 774await waitTask.ConfigureAwait(false);
System\Net\Http\MultipartContent.cs (2)
220await output.CopyToAsync(stream, cancellationToken).ConfigureAwait(false); 222await content.CopyToAsync(stream, context, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
68await sslStream.AuthenticateAsClientAsync(sslOptions, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
121await copyTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
219await HandleHttp11Downgrade(queueItem.Request, stream, transportContext, activity, remoteEndPoint, connectionId, cts.Token).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
150await copyTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (3)
177await decompressedStream.CopyToAsync(stream, cancellationToken).ConfigureAwait(false); 320await _decompressionStream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false); 431await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (6)
1254await FlushOutgoingBytesAsync().ConfigureAwait(false); 1287await FlushOutgoingBytesAsync().ConfigureAwait(false); 1752}, cancellationToken).ConfigureAwait(false); 1805}, cancellationToken).ConfigureAwait(false); 2125await requestBodyTask.ConfigureAwait(false); 2145await responseHeadersTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1329await _connection.SendStreamDataAsync(StreamId, current, flush, _requestBodyCancellationSource.Token).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (4)
171await _sendSettingsTask!.ConfigureAwait(false); 653await ProcessServerControlStreamAsync(stream, bufferCopy).ConfigureAwait(false); 664await stream.CopyToAsync(Stream.Null).ConfigureAwait(false); 676await stream.CopyToAsync(Stream.Null).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (4)
206await sendRequestTask.ConfigureAwait(false); 236await readResponseTask.ConfigureAwait(false); 245await writesClosed.WaitAsync(_requestBodyCancellationSource.Token).ConfigureAwait(false); 487await content.CopyToAsync(writeStream, null, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (5)
770await sendTask.ConfigureAwait(false); 884await sendRequestContentTask.ConfigureAwait(false); 981await request.Content!.CopyToAsync(stream, _transportContext, cancellationToken).ConfigureAwait(false); 989await stream.FinishAsync(async).ConfigureAwait(false); 1932await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnectionResponseContent.cs (1)
61await contentStream.CopyToAsync(stream, BufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
124await copyTask.ConfigureAwait(false);
System\Net\Http\StreamToStreamCopy.cs (1)
82await copyTask.ConfigureAwait(false);
System.Net.Http.Json (1)
System\Net\Http\Json\JsonContent.cs (1)
131await JsonSerializer.SerializeAsync(transcodingStream, Value, _typeInfo, cancellationToken).ConfigureAwait(false);
System.Net.Http.WinHttpHandler (4)
System\Net\Http\WinHttpHandler.cs (4)
971await sendRequestBodyTask.ConfigureAwait(false); 1031await sendRequestBodyTask.ConfigureAwait(false); 1688await state.RequestMessage.Content.CopyToAsync(requestStream, state.TransportContext).ConfigureAwait(false); 1689await requestStream.EndUploadAsync().ConfigureAwait(false);
System.Net.HttpListener (3)
System\Net\Managed\HttpResponseStream.Managed.cs (2)
109await InternalWriteAsync(ms.GetBuffer(), (int)start, (int)(ms.Length - start)).ConfigureAwait(false); 110await _stream.FlushAsync().ConfigureAwait(false);
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
58await responseStream.WriteWebSocketHandshakeHeadersAsync().ConfigureAwait(false);
System.Net.Mail (19)
System\Net\Base64Stream.cs (1)
153await base.FlushAsync(cancellationToken).ConfigureAwait(false);
System\Net\Mail\MailMessage.cs (1)
438await _message.SendAsync<TIOAdapter>(writer, sendEnvelope, allowUnicode, cancellationToken).ConfigureAwait(false);
System\Net\Mail\MailPriority.cs (1)
258await Content.SendAsync<TIOAdapter>(writer, allowUnicode, cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpClient.cs (2)
551await EnsureConnection<TIOAdapter>(cancellationToken).ConfigureAwait(false); 560await message.SendAsync<TIOAdapter>(writer, DeliveryMethod != SmtpDeliveryMethod.Network, allowUnicode, cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpCommands.cs (3)
21await conn.FlushAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 31await conn.FlushAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 416await conn.FlushAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpConnection.cs (5)
89await _tcpClient!.ConnectAsync(host, port).ConfigureAwait(false); 106await InitializeConnectionAsync(host, port).ConfigureAwait(false); 141await HelloCommand.SendAsync<TIOAdapter>(this, _client!._clientDomain, cancellationToken).ConfigureAwait(false); 158await StartTlsCommand.SendAsync<TIOAdapter>(this, cancellationToken).ConfigureAwait(false); 174cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpTransport.cs (3)
96await GetConnectionAsync<AsyncReadWriteAdapter>(host, port, cancellationToken).ConfigureAwait(false); 138await MailCommand.SendAsync<TIOAdapter>(_connection!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false); 162await DataCommand.SendAsync<TIOAdapter>(_connection!, cancellationToken).ConfigureAwait(false);
System\Net\Mime\MimeMultiPart.cs (1)
52await part.SendAsync<TIOAdapter>(mimeWriter, allowUnicode, cancellationToken).ConfigureAwait(false);
System\Net\Mime\QEncodedStream.cs (1)
197await base.FlushAsync(cancellationToken).ConfigureAwait(false);
System\Net\Mime\QuotedPrintableStream.cs (1)
311await base.FlushAsync(cancellationToken).ConfigureAwait(false);
System.Net.NameResolution (4)
System\Net\DnsResolverPal.Managed.cs (4)
705await SendExactAsync(socket, buffer.AsMemory(0, 2), timeoutCts.Token).ConfigureAwait(false); 706await SendExactAsync(socket, query, timeoutCts.Token).ConfigureAwait(false); 708await ReceiveExactAsync(socket, buffer.AsMemory(0, 2), timeoutCts.Token).ConfigureAwait(false); 717await ReceiveExactAsync(socket, buffer.AsMemory(0, responseLength), timeoutCts.Token).ConfigureAwait(false);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
83await pingProcess.WaitForExitAsync(timeoutOrCancellationToken).ConfigureAwait(false);
System.Net.Quic (3)
System\Net\Quic\QuicConnection.cs (2)
551await _connectionCloseTcs.Task.ConfigureAwait(false); 849await _shutdownTcs.GetFinalTask(this).ConfigureAwait(false);
System\Net\Quic\QuicListener.cs (1)
431await _disposeCts.CancelAsync().ConfigureAwait(false);
System.Net.Requests (3)
System\Net\FtpWebRequest.cs (1)
959await client.ConnectAsync(_uri.Host, _uri.Port).ConfigureAwait(false);
System\Net\RequestStream.cs (1)
150await _internalStream.FlushAsync().ConfigureAwait(false);
System\Net\RequestStreamContent.cs (1)
23await completeTcs.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
System.Net.Security (19)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (3)
198await sendTask.ConfigureAwait(false); 237await sendTask.ConfigureAwait(false); 257await responseStream.CopyToAsync(result).ConfigureAwait(false);
System\Net\Security\NegotiateStream.cs (8)
742SendBlobAsync<TIOAdapter>(message: null, cancellationToken)).ConfigureAwait(false); // client should send the first blob 787await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message, exception, cancellationToken).ConfigureAwait(false); 811await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 848await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message!, exception, cancellationToken).ConfigureAwait(false); 858await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 861await ReceiveBlobAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 920await SendBlobAsync<TIOAdapter>(message, cancellationToken).ConfigureAwait(false); 930await _framer.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false);
System\Net\Security\SslStream.IO.cs (8)
129await task.ConfigureAwait(false); 164await ForceAuthenticationAsync<TIOAdapter>(receiveFirst: false, buffer, cancellationToken).ConfigureAwait(false); 214await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 238await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 337await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 381await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 774await waitTask.ConfigureAwait(false); 967await ReplyOnReAuthenticationAsync<TIOAdapter>(extraBuffer, cancellationToken).ConfigureAwait(false);
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseFormatter.cs (1)
93await destination.FlushAsync(cancellationToken).ConfigureAwait(false);
System.Net.Sockets (1)
System\Net\Sockets\TCPClient.cs (1)
200await task.ConfigureAwait(false);
System.Net.WebSockets (9)
System\Net\WebSockets\ManagedWebSocket.cs (8)
571await _stream.FlushAsync().ConfigureAwait(false); 602await lockTask.ConfigureAwait(false); 611await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 792await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1141await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1160await task.WaitAsync(TimeSpan.FromMilliseconds(WaitForCloseTimeoutMs)).ConfigureAwait(false); 1297await CloseOutputAsyncCore(closeStatus, string.Empty, enterReceiveMutex: false, cancellationToken: default).ConfigureAwait(false); 1482await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false);
System\Net\WebSockets\WebSocket.cs (1)
76await SendAsync(new ArraySegment<byte>(array, 0, buffer.Length), messageType, endOfMessage, cancellationToken).ConfigureAwait(false);
System.Net.WebSockets.Client (7)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (6)
334await CancellationHelper(openTask!, cancellationToken, WebSocketState.Connecting).ConfigureAwait(false); 402await CancellationHelper(sendTask, cancellationToken, previousState).ConfigureAwait(false); 445await CancellationHelper(receiveTask, cancellationToken, previousState).ConfigureAwait(false); 539await CancellationHelper(closeTask, cancellationToken, previousState).ConfigureAwait(false); 564await promise.ConfigureAwait(false); 574await promise.ConfigureAwait(false);
System\Net\WebSockets\ClientWebSocket.cs (1)
126await _innerWebSocket.ConnectAsync(uri, invoker, cancellationToken, Options).ConfigureAwait(false);
System.Private.CoreLib (83)
src\runtime\src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (1)
139_task.ConfigureAwait(continueOnCapturedContext: false)
src\runtime\src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (27)
93await _writer.WriteAsync(_tabString).ConfigureAwait(false); 206await OutputTabsAsync().ConfigureAwait(false); 207await _writer.WriteAsync(value).ConfigureAwait(false); 218await OutputTabsAsync().ConfigureAwait(false); 219await _writer.WriteAsync(value).ConfigureAwait(false); 233await OutputTabsAsync().ConfigureAwait(false); 234await _writer.WriteAsync(buffer, index, count).ConfigureAwait(false); 245await OutputTabsAsync().ConfigureAwait(false); 246await _writer.WriteAsync(value).ConfigureAwait(false); 258await OutputTabsAsync().ConfigureAwait(false); 259await _writer.WriteAsync(buffer, cancellationToken).ConfigureAwait(false); 271await OutputTabsAsync().ConfigureAwait(false); 272await _writer.WriteAsync(value, cancellationToken).ConfigureAwait(false); 422await OutputTabsAsync().ConfigureAwait(false); 423await _writer.WriteLineAsync().ConfigureAwait(false); 435await OutputTabsAsync().ConfigureAwait(false); 436await _writer.WriteLineAsync(value).ConfigureAwait(false); 448await OutputTabsAsync().ConfigureAwait(false); 449await _writer.WriteLineAsync(value).ConfigureAwait(false); 463await OutputTabsAsync().ConfigureAwait(false); 464await _writer.WriteLineAsync(buffer, index, count).ConfigureAwait(false); 476await OutputTabsAsync().ConfigureAwait(false); 477await _writer.WriteLineAsync(value).ConfigureAwait(false); 490await OutputTabsAsync().ConfigureAwait(false); 491await _writer.WriteLineAsync(buffer, cancellationToken).ConfigureAwait(false); 504await OutputTabsAsync().ConfigureAwait(false); 505await _writer.WriteLineAsync(value, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (9)
246await FlushAsync().ConfigureAwait(false); 317await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 341await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 350await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 427await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 682await semaphoreLockTask.ConfigureAwait(false); 1066await semaphoreLockTask.ConfigureAwait(false); 1290await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 1310await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1392await writer.WriteLineAsync(line.AsMemory(), cancellationToken).ConfigureAwait(false); 1395await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (8)
99await FlushAsync().ConfigureAwait(false); 355await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 398await semaphoreLockTask.ConfigureAwait(false); 663await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 681await semaphoreLockTask.ConfigureAwait(false); 799await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 847await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 868await _strategy.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
749await writeTask.ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (9)
286await FlushAsync().ConfigureAwait(false); 702await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false); 713await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false); 722await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(false); 804await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false); 821await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false); 830await FlushAsyncInternal(flushStream: true, flushEncoder: false, cancellationToken).ConfigureAwait(false); 981await FlushAsyncInternal(flushStream, flushEncoder, cancellationToken).ConfigureAwait(false); 1025await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (15)
107await writer.FlushAsync().ConfigureAwait(false); 115await writer.FlushAsync(cancellationToken).ConfigureAwait(false); 467await writer.WriteAsync(value).ConfigureAwait(false); 475await writer.WriteAsync(value).ConfigureAwait(false); 483await writer.WriteAsync(value).ConfigureAwait(false); 491await writer.WriteAsync(value, cancellationToken).ConfigureAwait(false); 499await writer.WriteAsync(buffer, index, count).ConfigureAwait(false); 507await writer.WriteAsync(buffer, cancellationToken).ConfigureAwait(false); 515await writer.WriteLineAsync(value).ConfigureAwait(false); 523await writer.WriteLineAsync(value).ConfigureAwait(false); 531await writer.WriteLineAsync(value).ConfigureAwait(false); 539await writer.WriteLineAsync(value, cancellationToken).ConfigureAwait(false); 547await writer.WriteLineAsync(buffer, index, count).ConfigureAwait(false); 555await writer.WriteLineAsync(buffer, cancellationToken).ConfigureAwait(false); 563await writer.WriteLineAsync().ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (3)
650await WriteAsync(chunk, ct).ConfigureAwait(false); 744await WriteAsync(chunk, ct).ConfigureAwait(false); 746await WriteAsync(CoreNewLine, ct).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (6)
59t.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().OnCompleted(continuation); 69Task.CompletedTask.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().OnCompleted(continuation); 81t.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().UnsafeOnCompleted(continuation); 90Task.CompletedTask.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().UnsafeOnCompleted(continuation); 182Task.CompletedTask.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().OnCompleted(continuation); 203Task.CompletedTask.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConfigureAwaitOptions.cs (2)
13/// identically to using <see cref="Task.ConfigureAwait(bool)"/> with a <see langword="false"/> argument. 25/// behaves identically to using <see cref="Task.ConfigureAwait(bool)"/> with a <see langword="true"/> argument.
System.Private.DataContractSerialization (29)
System\Xml\XmlBaseWriter.cs (14)
377await FlushBase64Async().ConfigureAwait(false); 419await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 548await _writer.WriteStartElementAsync(prefix, localName).ConfigureAwait(false); 553await FlushBase64Async().ConfigureAwait(false); 554await AutoCompleteAsync(WriteState.Element).ConfigureAwait(false); 644await WriteEndAttributeAsync().ConfigureAwait(false); 650await _writer.WriteEndStartElementAsync(true).ConfigureAwait(false); 655await _writer.WriteEndElementAsync(element.Prefix, element.LocalName!).ConfigureAwait(false); 725await FlushElementAsync().ConfigureAwait(false); 786await EndStartElementAsync().ConfigureAwait(false); 1549await StartContentAsync().ConfigureAwait(false); 1550await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, buffer, offset, actualByteCount - _trailByteCount).ConfigureAwait(false); 1768await StartContentAsync().ConfigureAwait(false); 1769await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, _trailBytes, 0, 0).ConfigureAwait(false);
System\Xml\XmlStreamNodeWriter.cs (5)
101await FlushBufferAsync().ConfigureAwait(false); 149await FlushBufferAsync().ConfigureAwait(false); 195await FlushBufferAsync().ConfigureAwait(false); 424await FlushBufferAsync().ConfigureAwait(false); 425await OutputStream.FlushAsync().ConfigureAwait(false);
System\Xml\XmlUTF8TextWriter.cs (10)
176await WriteByteAsync('<').ConfigureAwait(false); 181await WriteByteAsync(':').ConfigureAwait(false); 220await WriteByteAsync('>').ConfigureAwait(false); 224await WriteBytesAsync('/', '>').ConfigureAwait(false); 242await WriteBytesAsync('<', '/').ConfigureAwait(false); 246await WriteByteAsync(':').ConfigureAwait(false); 249await WriteByteAsync('>').ConfigureAwait(false); 340await WriteByteAsync('"').ConfigureAwait(false); 643await InternalWriteBase64TextAsync(trailBytes, 0, trailByteCount).ConfigureAwait(false); 646await InternalWriteBase64TextAsync(buffer, offset, count).ConfigureAwait(false);
System.Private.Xml (407)
System\Xml\AsyncHelper.cs (5)
36await task.ConfigureAwait(false); 49await task.ConfigureAwait(false); 62await task.ConfigureAwait(false); 63await func(arg).ConfigureAwait(false); 75await task.ConfigureAwait(false);
System\Xml\Base64EncoderAsync.cs (3)
44await WriteCharsAsync(_charsLine, 0, leftOverChars).ConfigureAwait(false); 69await WriteCharsAsync(_charsLine, 0, charCount).ConfigureAwait(false); 81await WriteCharsAsync(_charsLine, 0, leftOverChars).ConfigureAwait(false);
System\Xml\BinHexEncoderAsync.cs (1)
27await writer.WriteRawAsync(chars, 0, cnt * 2).ConfigureAwait(false);
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
37await _readBinaryHelper.FinishAsync().ConfigureAwait(false);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (2)
108await writer.WriteCDataAsync(text.Substring(0, i + 2)).ConfigureAwait(false); 113await writer.WriteCDataAsync(text).ConfigureAwait(false);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (82)
40await RawTextAsync("<?xml version=\"").ConfigureAwait(false); 43await RawTextAsync("1.0").ConfigureAwait(false); 48await RawTextAsync("\" encoding=\"").ConfigureAwait(false); 49await RawTextAsync(_encoding.WebName).ConfigureAwait(false); 55await RawTextAsync("\" standalone=\"").ConfigureAwait(false); 56await RawTextAsync(standalone == XmlStandalone.Yes ? "yes" : "no").ConfigureAwait(false); 59await RawTextAsync("\"?>").ConfigureAwait(false); 79await FlushBufferAsync().ConfigureAwait(false); 90await _stream.FlushAsync().ConfigureAwait(false); 111await _writer.FlushAsync().ConfigureAwait(false); 139await RawTextAsync("<!DOCTYPE ").ConfigureAwait(false); 140await RawTextAsync(name).ConfigureAwait(false); 143await RawTextAsync(" PUBLIC \"").ConfigureAwait(false); 144await RawTextAsync(pubid).ConfigureAwait(false); 145await RawTextAsync("\" \"").ConfigureAwait(false); 148await RawTextAsync(sysid).ConfigureAwait(false); 154await RawTextAsync(" SYSTEM \"").ConfigureAwait(false); 155await RawTextAsync(sysid).ConfigureAwait(false); 166await RawTextAsync(subset).ConfigureAwait(false); 309await WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false); 310await WriteStringAsync(namespaceName).ConfigureAwait(false); 311await WriteEndNamespaceDeclarationAsync().ConfigureAwait(false); 328await RawTextAsync("xmlns=\"").ConfigureAwait(false); 332await RawTextAsync("xmlns:").ConfigureAwait(false); 333await RawTextAsync(prefix).ConfigureAwait(false); 386await WriteCDataSectionAsync(text).ConfigureAwait(false); 409await WriteCommentOrPiAsync(text, '-').ConfigureAwait(false); 427await RawTextAsync(name).ConfigureAwait(false); 432await WriteCommentOrPiAsync(text, '?').ConfigureAwait(false); 448await RawTextAsync(name).ConfigureAwait(false); 453await FlushBufferAsync().ConfigureAwait(false); 476await RawTextAsync(strVal).ConfigureAwait(false); 481await FlushBufferAsync().ConfigureAwait(false); 537await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false); 576await WriteRawWithCharCheckingAsync(buffer, index, count).ConfigureAwait(false); 590await WriteRawWithCharCheckingAsync(data).ConfigureAwait(false); 599await FlushBufferAsync().ConfigureAwait(false); 600await FlushEncoderAsync().ConfigureAwait(false); 604await _stream.FlushAsync().ConfigureAwait(false); 608await _writer.FlushAsync().ConfigureAwait(false); 645await EncodeCharsAsync(1, _bufPos, true).ConfigureAwait(false); 652await _writer!.WriteAsync(_bufChars.AsMemory(1, _bufPos - 1)).ConfigureAwait(false); 884await FlushBufferAsync().ConfigureAwait(false); 909await FlushBufferAsync().ConfigureAwait(false); 917await FlushBufferAsync().ConfigureAwait(false); 1097await RawTextAsync(_newLineChars).ConfigureAwait(false); 1103await FlushBufferAsync().ConfigureAwait(false); 1137await RawTextAsync(_newLineChars).ConfigureAwait(false); 1143await FlushBufferAsync().ConfigureAwait(false); 1154await RawTextAsync(_newLineChars).ConfigureAwait(false); 1160await FlushBufferAsync().ConfigureAwait(false); 1319await FlushBufferAsync().ConfigureAwait(false); 1328await FlushBufferAsync().ConfigureAwait(false); 1335await RawTextAsync(text2, text3, text4).ConfigureAwait(false); 1495await RawTextAsync(_newLineChars).ConfigureAwait(false); 1501await FlushBufferAsync().ConfigureAwait(false); 1519await RawTextAsync(_newLineChars).ConfigureAwait(false); 1525await FlushBufferAsync().ConfigureAwait(false); 1690await FlushBufferAsync().ConfigureAwait(false); 1706await RawTextAsync(_newLineChars).ConfigureAwait(false); 1712await FlushBufferAsync().ConfigureAwait(false); 1874await FlushBufferAsync().ConfigureAwait(false); 1890await RawTextAsync(_newLineChars).ConfigureAwait(false); 1896await FlushBufferAsync().ConfigureAwait(false); 1911await WriteIndentAsync().ConfigureAwait(false); 1913await base.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false); 1924await WriteIndentAsync().ConfigureAwait(false); 1929await base.WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false); 1942await WriteIndentAsync().ConfigureAwait(false); 1947await base.WriteEndElementAsync(prefix, localName, ns).ConfigureAwait(false); 1960await WriteIndentAsync().ConfigureAwait(false); 1965await base.WriteFullEndElementAsync(prefix, localName, ns).ConfigureAwait(false); 1975await WriteIndentAsync().ConfigureAwait(false); 1978await base.WriteStartAttributeAsync(prefix, localName, ns).ConfigureAwait(false); 1988await WriteIndentAsync().ConfigureAwait(false); 1991await base.WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false); 2006await WriteIndentAsync().ConfigureAwait(false); 2009await base.WriteCommentAsync(text).ConfigureAwait(false); 2017await WriteIndentAsync().ConfigureAwait(false); 2020await base.WriteProcessingInstructionAsync(target, text).ConfigureAwait(false); 2090await RawTextAsync(base._newLineChars).ConfigureAwait(false); 2093await RawTextAsync(_indentChars).ConfigureAwait(false);
System\Xml\Core\XmlRawWriterAsync.cs (3)
195await WriteStringAsync(prefix).ConfigureAwait(false); 196await WriteStringAsync(":").ConfigureAwait(false); 199await WriteStringAsync(localName).ConfigureAwait(false);
System\Xml\Core\XmlReaderAsync.cs (1)
204await WriteNodeAsync(xtw, false).ConfigureAwait(false);
System\Xml\Core\XmlSubtreeReaderAsync.cs (4)
123await reader.SkipAsync().ConfigureAwait(false); 139await reader.SkipAsync().ConfigureAwait(false); 162await SkipAsync().ConfigureAwait(false); 170await SkipAsync().ConfigureAwait(false);
System\Xml\Core\XmlTextReaderImplAsync.cs (39)
46await FinishPartialValueAsync().ConfigureAwait(false); 51await FinishOtherValueIteratorAsync().ConfigureAwait(false); 95await InitStreamInputAsync(_laterInitParam.inputbaseUri, _reportedBaseUri, stream, null, 0, enc).ConfigureAwait(false); 102await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false); 126await InitStreamInputAsync(_laterInitParam.inputbaseUri, _reportedBaseUri, _laterInitParam!.inputStream!, _laterInitParam.inputBytes, _laterInitParam.inputByteCount, enc).ConfigureAwait(false); 133await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false); 148await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false); 330await SkipPartialTextValueAsync().ConfigureAwait(false); 333await FinishReadValueChunkAsync().ConfigureAwait(false); 336await FinishReadContentAsBinaryAsync().ConfigureAwait(false); 339await FinishReadElementContentAsBinaryAsync().ConfigureAwait(false); 770await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 778await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 841await PushExternalEntityOrSubsetAsync(publicId, systemId, _ps.baseUri, null).ConfigureAwait(false); 1247await SwitchEncodingToUTF8Async().ConfigureAwait(false); 1252await SwitchEncodingAsync(encoding).ConfigureAwait(false); 1460await SwitchEncodingToUTF8Async().ConfigureAwait(false); 1636await ParseEntityReferenceAsync().ConfigureAwait(false); 1946await ParseElementAsync_SetElement(colonPos, pos).ConfigureAwait(false); 2057await ParseElementAsync_NoAttributes().ConfigureAwait(false); 2077await ParseEndElmentAsync_PrepareData().ConfigureAwait(false); 2078await ParseEndElementAsync_CheckNameAndParse().ConfigureAwait(false); 2166await task.ConfigureAwait(false); 2539await ParseAttributeValueSlowAsync(pos, quoteChar, attr).ConfigureAwait(false); 3570await FinishPartialValueAsync().ConfigureAwait(false); 3587await FinishPartialValueAsync().ConfigureAwait(false); 3650await SkipPartialTextValueAsync().ConfigureAwait(false); 3665await FinishReadContentAsBinaryAsync().ConfigureAwait(false); 3815await ParseDtdFromParserContextAsync().ConfigureAwait(false); 4178await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 4184await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 4451await ParseDtdAsync().ConfigureAwait(false); 4462await SkipDtdAsync().ConfigureAwait(false); 4521await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false); 4530await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false); 4558await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false); 4572await SkipUntilAsync(']', true).ConfigureAwait(false); 5187await InitStreamInputAsync(uri, stream, null).ConfigureAwait(false); 5207await PushExternalEntityOrSubsetAsync(entity.PublicId, entity.SystemId, entityBaseUri, entity.Name).ConfigureAwait(false);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (77)
39await RawTextAsync("<?xml version=\"").ConfigureAwait(false); 42await RawTextAsync("1.0").ConfigureAwait(false); 47await RawTextAsync("\" encoding=\"").ConfigureAwait(false); 48await RawTextAsync(_encoding.WebName).ConfigureAwait(false); 54await RawTextAsync("\" standalone=\"").ConfigureAwait(false); 55await RawTextAsync(standalone == XmlStandalone.Yes ? "yes" : "no").ConfigureAwait(false); 58await RawTextAsync("\"?>").ConfigureAwait(false); 78await FlushBufferAsync().ConfigureAwait(false); 89await _stream.FlushAsync().ConfigureAwait(false); 115await RawTextAsync("<!DOCTYPE ").ConfigureAwait(false); 116await RawTextAsync(name).ConfigureAwait(false); 119await RawTextAsync(" PUBLIC \"").ConfigureAwait(false); 120await RawTextAsync(pubid).ConfigureAwait(false); 121await RawTextAsync("\" \"").ConfigureAwait(false); 124await RawTextAsync(sysid).ConfigureAwait(false); 130await RawTextAsync(" SYSTEM \"").ConfigureAwait(false); 131await RawTextAsync(sysid).ConfigureAwait(false); 142await RawTextAsync(subset).ConfigureAwait(false); 275await WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false); 276await WriteStringAsync(namespaceName).ConfigureAwait(false); 277await WriteEndNamespaceDeclarationAsync().ConfigureAwait(false); 292await RawTextAsync("xmlns=\"").ConfigureAwait(false); 296await RawTextAsync("xmlns:").ConfigureAwait(false); 297await RawTextAsync(prefix).ConfigureAwait(false); 344await WriteCDataSectionAsync(text).ConfigureAwait(false); 365await WriteCommentOrPiAsync(text, '-').ConfigureAwait(false); 381await RawTextAsync(name).ConfigureAwait(false); 386await WriteCommentOrPiAsync(text, '?').ConfigureAwait(false); 400await RawTextAsync(name).ConfigureAwait(false); 405await FlushBufferAsync().ConfigureAwait(false); 426await RawTextAsync(strVal).ConfigureAwait(false); 431await FlushBufferAsync().ConfigureAwait(false); 481await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false); 516await WriteRawWithCharCheckingAsync(buffer, index, count).ConfigureAwait(false); 528await WriteRawWithCharCheckingAsync(data).ConfigureAwait(false); 537await FlushBufferAsync().ConfigureAwait(false); 541await _stream.FlushAsync().ConfigureAwait(false); 757await FlushBufferAsync().ConfigureAwait(false); 782await FlushBufferAsync().ConfigureAwait(false); 790await FlushBufferAsync().ConfigureAwait(false); 969await RawTextAsync(_newLineChars).ConfigureAwait(false); 975await FlushBufferAsync().ConfigureAwait(false); 1009await RawTextAsync(_newLineChars).ConfigureAwait(false); 1015await FlushBufferAsync().ConfigureAwait(false); 1026await RawTextAsync(_newLineChars).ConfigureAwait(false); 1032await FlushBufferAsync().ConfigureAwait(false); 1190await FlushBufferAsync().ConfigureAwait(false); 1199await FlushBufferAsync().ConfigureAwait(false); 1206await RawTextAsync(text2, text3, text4).ConfigureAwait(false); 1365await RawTextAsync(_newLineChars).ConfigureAwait(false); 1371await FlushBufferAsync().ConfigureAwait(false); 1389await RawTextAsync(_newLineChars).ConfigureAwait(false); 1395await FlushBufferAsync().ConfigureAwait(false); 1559await FlushBufferAsync().ConfigureAwait(false); 1575await RawTextAsync(_newLineChars).ConfigureAwait(false); 1581await FlushBufferAsync().ConfigureAwait(false); 1742await FlushBufferAsync().ConfigureAwait(false); 1758await RawTextAsync(_newLineChars).ConfigureAwait(false); 1764await FlushBufferAsync().ConfigureAwait(false); 1779await WriteIndentAsync().ConfigureAwait(false); 1781await base.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false); 1792await WriteIndentAsync().ConfigureAwait(false); 1797await base.WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false); 1810await WriteIndentAsync().ConfigureAwait(false); 1815await base.WriteEndElementAsync(prefix, localName, ns).ConfigureAwait(false); 1828await WriteIndentAsync().ConfigureAwait(false); 1833await base.WriteFullEndElementAsync(prefix, localName, ns).ConfigureAwait(false); 1843await WriteIndentAsync().ConfigureAwait(false); 1846await base.WriteStartAttributeAsync(prefix, localName, ns).ConfigureAwait(false); 1856await WriteIndentAsync().ConfigureAwait(false); 1859await base.WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false); 1874await WriteIndentAsync().ConfigureAwait(false); 1877await base.WriteCommentAsync(text).ConfigureAwait(false); 1885await WriteIndentAsync().ConfigureAwait(false); 1888await base.WriteProcessingInstructionAsync(target, text).ConfigureAwait(false); 1958await RawTextAsync(base._newLineChars).ConfigureAwait(false); 1961await RawTextAsync(_indentChars).ConfigureAwait(false);
System\Xml\Core\XmlValidatingReaderImplAsync.cs (3)
43await ParseDtdFromParserContextAsync().ConfigureAwait(false); 61await ResolveEntityInternallyAsync().ConfigureAwait(false); 65await _readBinaryHelper!.FinishAsync().ConfigureAwait(false);
System\Xml\Core\XmlWellFormedWriterAsync.cs (79)
38await WriteEndElementAsync().ConfigureAwait(false); 41await AdvanceStateAsync(Token.EndDocument).ConfigureAwait(false); 49await _writer.WriteEndDocumentAsync().ConfigureAwait(false); 72await AdvanceStateAsync(Token.Dtd).ConfigureAwait(false); 114await _writer.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false); 141await task.ConfigureAwait(false); 167await task.ConfigureAwait(false); 168await nextTaskFun(arg).ConfigureAwait(false); 263await task.ConfigureAwait(false); 264await WriteStartElementAsync_NoAdvanceState(prefix, localName, ns).ConfigureAwait(false); 306await t.ConfigureAwait(false); 598await task.ConfigureAwait(false); 599await WriteStartAttributeAsync_NoAdvanceState(prefix, localName, namespaceName).ConfigureAwait(false); 660await _rawWriter.WriteStartNamespaceDeclarationAsync(string.Empty).ConfigureAwait(false); 661await _attrValueCache.ReplayAsync(_rawWriter).ConfigureAwait(false); 662await _rawWriter.WriteEndNamespaceDeclarationAsync().ConfigureAwait(false); 666await _rawWriter.WriteNamespaceDeclarationAsync(string.Empty, value).ConfigureAwait(false); 671await _writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false); 672await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false); 673await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 697await _rawWriter.WriteStartNamespaceDeclarationAsync(_curDeclPrefix).ConfigureAwait(false); 698await _attrValueCache.ReplayAsync(_rawWriter).ConfigureAwait(false); 699await _rawWriter.WriteEndNamespaceDeclarationAsync().ConfigureAwait(false); 703await _rawWriter.WriteNamespaceDeclarationAsync(_curDeclPrefix, value).ConfigureAwait(false); 708await _writer.WriteStartAttributeAsync("xmlns", _curDeclPrefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false); 709await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false); 710await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 731await _writer.WriteStartAttributeAsync("xml", "space", XmlReservedNs.NsXml).ConfigureAwait(false); 732await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false); 733await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 738await _writer.WriteStartAttributeAsync("xml", "lang", XmlReservedNs.NsXml).ConfigureAwait(false); 739await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false); 740await _writer.WriteEndAttributeAsync().ConfigureAwait(false); 759await AdvanceStateAsync(Token.CData).ConfigureAwait(false); 760await _writer.WriteCDataAsync(text).ConfigureAwait(false); 775await AdvanceStateAsync(Token.Comment).ConfigureAwait(false); 776await _writer.WriteCommentAsync(text).ConfigureAwait(false); 805await AdvanceStateAsync(Token.PI).ConfigureAwait(false); 810await _rawWriter.WriteXmlDeclarationAsync(text).ConfigureAwait(false); 814await _writer.WriteProcessingInstructionAsync(name, text).ConfigureAwait(false); 819await AdvanceStateAsync(Token.PI).ConfigureAwait(false); 820await _writer.WriteProcessingInstructionAsync(name, text).ConfigureAwait(false); 838await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 845await _writer.WriteEntityRefAsync(name).ConfigureAwait(false); 864await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 871await _writer.WriteCharEntityAsync(ch).ConfigureAwait(false); 890await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 897await _writer.WriteSurrogateCharEntityAsync(lowChar, highChar).ConfigureAwait(false); 918await AdvanceStateAsync(Token.Whitespace).ConfigureAwait(false); 925await _writer.WriteWhitespaceAsync(ws).ConfigureAwait(false); 987await task.ConfigureAwait(false); 988await WriteStringAsync_NoAdvanceState(text).ConfigureAwait(false); 1006await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 1013await _writer.WriteCharsAsync(buffer, index, count).ConfigureAwait(false); 1032await AdvanceStateAsync(Token.RawData).ConfigureAwait(false); 1039await _writer.WriteRawAsync(buffer, index, count).ConfigureAwait(false); 1058await AdvanceStateAsync(Token.RawData).ConfigureAwait(false); 1065await _writer.WriteRawAsync(data).ConfigureAwait(false); 1106await task.ConfigureAwait(false); 1107await _writer.WriteBase64Async(buffer, index, count).ConfigureAwait(false); 1120await _writer.FlushAsync().ConfigureAwait(false); 1136await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 1157await WriteStringAsync(prefix).ConfigureAwait(false); 1158await WriteStringAsync(":").ConfigureAwait(false); 1160await WriteStringAsync(localName).ConfigureAwait(false); 1164await _rawWriter.WriteQualifiedNameAsync(prefix, localName, ns).ConfigureAwait(false); 1182await AdvanceStateAsync(Token.Text).ConfigureAwait(false); 1183await base.WriteBinHexAsync(buffer, index, count).ConfigureAwait(false); 1196await AdvanceStateAsync(Token.StartDocument).ConfigureAwait(false); 1212await _rawWriter.WriteXmlDeclarationAsync(standalone).ConfigureAwait(false); 1218await _writer.WriteStartDocumentAsync().ConfigureAwait(false); 1244await task.ConfigureAwait(false); 1263await task.ConfigureAwait(false); 1265await AdvanceStateAsync(token).ConfigureAwait(false); 1385await _nsStack[i].WriteDeclAsync(_writer, _rawWriter).ConfigureAwait(false); 1414await WriteEndElementAsync().ConfigureAwait(false); 1424await AdvanceStateAsync(Token.EndElement).ConfigureAwait(false); 1436await _rawWriter.WriteEndBase64Async().ConfigureAwait(false); 1439await _writer.FlushAsync().ConfigureAwait(false);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (15)
34await rawWriter.WriteNamespaceDeclarationAsync(prefix, namespaceUri).ConfigureAwait(false); 40await writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false); 44await writer.WriteStartAttributeAsync("xmlns", prefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false); 46await writer.WriteStringAsync(namespaceUri).ConfigureAwait(false); 47await writer.WriteEndAttributeAsync().ConfigureAwait(false); 58await writer.WriteStringAsync(_singleStringValue).ConfigureAwait(false); 69await writer.WriteEntityRefAsync((string)item.data).ConfigureAwait(false); 72await writer.WriteCharEntityAsync((char)item.data).ConfigureAwait(false); 76await writer.WriteSurrogateCharEntityAsync(chars[0], chars[1]).ConfigureAwait(false); 79await writer.WriteWhitespaceAsync((string)item.data).ConfigureAwait(false); 82await writer.WriteStringAsync((string)item.data).ConfigureAwait(false); 86await writer.WriteCharsAsync(bufChunk.buffer, bufChunk.index, bufChunk.count).ConfigureAwait(false); 89await writer.WriteRawAsync((string)item.data).ConfigureAwait(false); 93await writer.WriteCharsAsync(bufChunk.buffer, bufChunk.index, bufChunk.count).ConfigureAwait(false); 96await writer.WriteStringAsync((string)item.data).ConfigureAwait(false);
System\Xml\Core\XmlWriterAsync.cs (53)
79await task.ConfigureAwait(false); 80await WriteStringAsync(value).ConfigureAwait(false); 81await WriteEndAttributeAsync().ConfigureAwait(false); 222await WriteStringAsync(prefix).ConfigureAwait(false); 223await WriteStringAsync(":").ConfigureAwait(false); 225await WriteStringAsync(localName).ConfigureAwait(false); 242await WriteAttributesAsync(reader, defattr).ConfigureAwait(false); 258await WriteStartAttributeAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false); 263await WriteEntityRefAsync(reader.Name).ConfigureAwait(false); 267await WriteStringAsync(reader.Value).ConfigureAwait(false); 270await WriteEndAttributeAsync().ConfigureAwait(false); 305await WriteStartElementAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false); 306await WriteAttributesAsync(reader, defattr).ConfigureAwait(false); 309await WriteEndElementAsync().ConfigureAwait(false); 319await WriteCharsAsync(_writeNodeBuffer, 0, read).ConfigureAwait(false); 324await WriteStringAsync(reader.Value).ConfigureAwait(false); 329await WriteWhitespaceAsync(reader.Value).ConfigureAwait(false); 332await WriteCDataAsync(reader.Value).ConfigureAwait(false); 335await WriteEntityRefAsync(reader.Name).ConfigureAwait(false); 339await WriteProcessingInstructionAsync(reader.Name, reader.Value).ConfigureAwait(false); 342await WriteDocTypeAsync(reader.Name, reader.GetAttribute("PUBLIC"), reader.GetAttribute("SYSTEM"), reader.Value).ConfigureAwait(false); 346await WriteCommentAsync(reader.Value).ConfigureAwait(false); 349await WriteFullEndElementAsync().ConfigureAwait(false); 367await WriteStartElementAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false); 368await WriteAttributesAsync(reader, defattr).ConfigureAwait(false); 371await WriteEndElementAsync().ConfigureAwait(false); 381await WriteCharsAsync(_writeNodeBuffer, 0, read).ConfigureAwait(false); 387await WriteStringAsync(await reader.GetValueAsync().ConfigureAwait(false)).ConfigureAwait(false); 392await WriteWhitespaceAsync(await reader.GetValueAsync().ConfigureAwait(false)).ConfigureAwait(false); 395await WriteCDataAsync(reader.Value).ConfigureAwait(false); 398await WriteEntityRefAsync(reader.Name).ConfigureAwait(false); 402await WriteProcessingInstructionAsync(reader.Name, reader.Value).ConfigureAwait(false); 405await WriteDocTypeAsync(reader.Name, reader.GetAttribute("PUBLIC"), reader.GetAttribute("SYSTEM"), reader.Value).ConfigureAwait(false); 409await WriteCommentAsync(reader.Value).ConfigureAwait(false); 412await WriteFullEndElementAsync().ConfigureAwait(false); 438await WriteStartElementAsync(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI).ConfigureAwait(false); 448await WriteStartAttributeAsync(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI).ConfigureAwait(false); 450await WriteStringAsync(navigator.Value).ConfigureAwait(false); 451await WriteEndAttributeAsync().ConfigureAwait(false); 460await WriteLocalNamespacesAsync(navigator).ConfigureAwait(false); 469await WriteStringAsync(navigator.Value).ConfigureAwait(false); 473await WriteWhitespaceAsync(navigator.Value).ConfigureAwait(false); 479await WriteCommentAsync(navigator.Value).ConfigureAwait(false); 482await WriteProcessingInstructionAsync(navigator.LocalName, navigator.Value).ConfigureAwait(false); 506await WriteEndElementAsync().ConfigureAwait(false); 510await WriteFullEndElementAsync().ConfigureAwait(false); 536await WriteFullEndElementAsync().ConfigureAwait(false); 547await WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false); 550await WriteStringAsync(value).ConfigureAwait(false); 552await WriteEndElementAsync().ConfigureAwait(false); 564await WriteLocalNamespacesAsync(nsNav).ConfigureAwait(false); 569await WriteAttributeStringAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false); 573await WriteAttributeStringAsync("xmlns", prefix, XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false);
System\Xml\Core\XsdValidatingReaderAsync.cs (7)
251await ProcessReaderEventAsync().ConfigureAwait(false); 281await task.ConfigureAwait(false); 364await _coreReader.SkipAsync().ConfigureAwait(false); 552await _inlineSchemaParser.StartParsingAsync(_coreReader, null).ConfigureAwait(false); 621await ProcessEndElementEventAsync().ConfigureAwait(false); 641await _cachingReader.SetToReplayModeAsync().ConfigureAwait(false); 868await ProcessReaderEventAsync().ConfigureAwait(false);
System\Xml\Schema\DtdParserAsync.cs (32)
26await ParseAsync(saveInternalSubset).ConfigureAwait(false); 33await ParseAsync(false).ConfigureAwait(false); 46await ParseFreeFloatingDtdAsync().ConfigureAwait(false); 50await ParseInDocumentDtdAsync(saveInternalSubset).ConfigureAwait(false); 103await ParseInternalSubsetAsync().ConfigureAwait(false); 115await ParseExternalSubsetAsync().ConfigureAwait(false); 124await ParseInternalSubsetAsync().ConfigureAwait(false); 130await ParseExternalSubsetAsync().ConfigureAwait(false); 160await ParseSubsetAsync().ConfigureAwait(false); 178await ParseAttlistDeclAsync().ConfigureAwait(false); 182await ParseElementDeclAsync().ConfigureAwait(false); 186await ParseEntityDeclAsync().ConfigureAwait(false); 190await ParseNotationDeclAsync().ConfigureAwait(false); 194await ParseCommentAsync().ConfigureAwait(false); 198await ParsePIAsync().ConfigureAwait(false); 206await ParseCondSectionAsync().ConfigureAwait(false); 346await ParseAttlistTypeAsync(attrDef, elementDecl, attrDefAlreadyExists).ConfigureAwait(false); 347await ParseAttlistDefaultAsync(attrDef, attrDefAlreadyExists).ConfigureAwait(false); 624await ParseElementMixedContentAsync(pcv, startParenEntityId).ConfigureAwait(false); 636await ParseElementOnlyContentAsync(pcv, startParenEntityId).ConfigureAwait(false); 672await ParseHowManyAsync(pcv).ConfigureAwait(false); 721await ParseHowManyAsync(pcv).ConfigureAwait(false); 994await _readerAdapter.ParseCommentAsync(_internalSubsetValueSb).ConfigureAwait(false); 999await _readerAdapter.ParseCommentAsync(null).ConfigureAwait(false); 1022await _readerAdapter.ParsePIAsync(_internalSubsetValueSb).ConfigureAwait(false); 1027await _readerAdapter.ParsePIAsync(null).ConfigureAwait(false); 1473await ScanNameAsync().ConfigureAwait(false); 1480await ScanQNameAsync().ConfigureAwait(false); 1487await ScanNmtokenAsync().ConfigureAwait(false); 1613await ScanQNameAsync().ConfigureAwait(false); 1632await ScanQNameAsync().ConfigureAwait(false); 2119await ScanNameAsync().ConfigureAwait(false);
System.Private.Xml.Linq (29)
System\Xml\Linq\XContainer.cs (3)
880await ReadContentFromAsync(r, cancellationToken).ConfigureAwait(false); 1428await tWrite.ConfigureAwait(false); 1436await n.WriteToAsync(writer, cancellationToken).ConfigureAwait(false);
System\Xml\Linq\XDocument.cs (8)
482await d.ReadContentFromAsync(reader, options, cancellationToken).ConfigureAwait(false); 647await WriteToAsync(w, cancellationToken).ConfigureAwait(false); 648await w.FlushAsync().ConfigureAwait(false); 721await WriteToAsync(w, cancellationToken).ConfigureAwait(false); 722await w.FlushAsync().ConfigureAwait(false); 857await tStart.ConfigureAwait(false); 859await WriteContentToAsync(writer, cancellationToken).ConfigureAwait(false); 860await writer.WriteEndDocumentAsync().ConfigureAwait(false);
System\Xml\Linq\XElement.cs (8)
165await xe.ReadElementFromAsync(r, LoadOptions.None, cancellationToken).ConfigureAwait(false); 849await e.ReadElementFromAsync(reader, options, cancellationToken).ConfigureAwait(false); 1089await SaveAsync(w, cancellationToken).ConfigureAwait(false); 1151await SaveAsync(w, cancellationToken).ConfigureAwait(false); 1188await writer.WriteStartDocumentAsync().ConfigureAwait(false); 1190await WriteToAsync(writer, cancellationToken).ConfigureAwait(false); 1193await writer.WriteEndDocumentAsync().ConfigureAwait(false); 2036await ReadContentFromAsync(r, o, cancellationTokentoken).ConfigureAwait(false);
System\Xml\Linq\XLinq.cs (10)
260await WriteStartElementAsync(current, cancellationToken).ConfigureAwait(false); 263await WriteEndElementAsync(cancellationToken).ConfigureAwait(false); 271await _writer.WriteStringAsync(s).ConfigureAwait(false); 272await WriteFullEndElementAsync(cancellationToken).ConfigureAwait(false); 283await n.WriteToAsync(_writer, cancellationToken).ConfigureAwait(false); 288await WriteFullEndElementAsync(cancellationToken).ConfigureAwait(false); 353await _writer.WriteEndElementAsync().ConfigureAwait(false); 366await _writer.WriteFullEndElementAsync().ConfigureAwait(false); 393await _writer.WriteStartElementAsync(GetPrefixOfNamespace(ns, true), e.Name.LocalName, ns.NamespaceName).ConfigureAwait(false); 404await _writer.WriteAttributeStringAsync(GetPrefixOfNamespace(ns, false), localName, namespaceName.Length == 0 && localName == "xmlns" ? XNamespace.xmlnsPrefixNamespace : namespaceName, a.Value).ConfigureAwait(false);
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (3)
198await sendTask.ConfigureAwait(false); 237await sendTask.ConfigureAwait(false); 257await responseStream.CopyToAsync(result).ConfigureAwait(false);
System\Security\Cryptography\CryptoStream.cs (3)
169await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 240await AsyncActiveSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 479await AsyncActiveSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
System.Security.Cryptography.Cose (6)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (3)
408await WriteSignatureAsync(writer, signer, buffer, buffer.AsMemory(0, protectedMapBytesWritten), associatedData, content, cancellationToken).ConfigureAwait(false); 487await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature, bodyProtected, buffer.AsMemory(start, signProtectedBytesWritten), associatedData, contentStream, cancellationToken).ConfigureAwait(false); 861await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature, _protectedHeaderAsBstr, encodedSignProtected, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
346await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1, buffer.AsMemory(0, protectedMapBytesWritten), ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false); 940await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSignature.cs (1)
629await CoseMessage.AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature, Message.RawProtectedHeaders, _encodedSignProtectedHeaders, associatedData, content, cancellationToken).ConfigureAwait(false);
System.ServiceModel.Primitives (11)
System\ServiceModel\Channels\BufferedReadStream.cs (1)
374await semaphoreLockTask.ConfigureAwait(false);
System\ServiceModel\Channels\BufferedWriteStream.cs (10)
188await _sem.WaitAsync().ConfigureAwait(false); 193await FlushWriteAsync(cancellationToken).ConfigureAwait(false); 199await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 225await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 227await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 468await semaphoreLockTask.ConfigureAwait(false); 496await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 519await _stream.WriteAsync(_buffer, 0, totalUserBytes, cancellationToken).ConfigureAwait(false); 524await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false); 529await _stream.WriteAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
System.Text.Json (4)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
85await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (1)
144await derivedTypeInfo.SerializeAsObjectAsync(pipeWriter, rootValue, flushThreshold, cancellationToken).ConfigureAwait(false);
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
539await FlushAsync().ConfigureAwait(false); 576await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
169await _timerTask.ConfigureAwait(false);
System.Threading.Tasks.Dataflow (4)
Blocks\TransformManyBlock.netstandard21.cs (4)
60await StoreOutputItemsAsync(messageWithId, outputItems).ConfigureAwait(false); 95await StoreOutputItemsReorderedAsync(messageWithId.Value, outputItems).ConfigureAwait(false); 100await StoreOutputItemsNonReorderedWithIterationAsync(outputItems).ConfigureAwait(false); 146await StoreOutputItemsNonReorderedWithIterationAsync(item).ConfigureAwait(false);
System.Windows.Forms (4)
System\Windows\Forms\Control_InvokeAsync.cs (4)
71await completion.Task.ConfigureAwait(false); 297.ConfigureAwait(false)); 299await completion.Task.ConfigureAwait(false); 402.ConfigureAwait(false));
TestingAppHost1.AppHost (1)
TestingAppHostEntryPointProbe.cs (1)
77await signal.Continue.Task.ConfigureAwait(false);
vbc (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
VBCSCompiler (15)
src\roslyn\src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (1)
107await clientConnection.WriteBuildResponseAsync(response, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
74await BuildServerConnection.MonitorDisconnectAsync(Stream, request.RequestId, Logger, DisconnectCancellationTokenSource.Token).ConfigureAwait(false);
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (1)
206await connectTask.ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 187cancellationToken).ConfigureAwait(false); 190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 305cancellationToken).ConfigureAwait(false); 308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false); 324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (5)
134await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 174await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 307await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 372await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 421await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);