3014 references to ConfigureAwait
aspire (87)
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)
228cancellationToken).ConfigureAwait(false);
Backchannel\AppHostCliBackchannel.cs (9)
103await WaitForReconnectionAsync(cancellationToken).ConfigureAwait(false); 139await WaitForReconnectionAsync(cancellationToken).ConfigureAwait(false); 229await Task.Delay(100, cancellationToken).ConfigureAwait(false); 242await Task.Delay(500, cancellationToken).ConfigureAwait(false); 331await ReconnectInternalAsync().ConfigureAwait(false); 373await ConnectAsync(_socketPath, _autoReconnect, _cancellationToken).ConfigureAwait(false); 380await Task.Delay(500, _cancellationToken).ConfigureAwait(false); 432cancellationToken).ConfigureAwait(false); 445cancellationToken).ConfigureAwait(false);
Backchannel\AppHostConnectionHelper.cs (1)
35await auxiliaryBackchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AppHostConnectionResolver.cs (2)
55await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 119await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelMonitor.cs (9)
170await fileWatcherTask.ConfigureAwait(false); 189await Task.WhenAll(disconnectTasks).ConfigureAwait(false); 204await _scanLock.WaitAsync(cancellationToken).ConfigureAwait(false); 236_ = Task.Run(async () => await DisconnectAsync(connection).ConfigureAwait(false), CancellationToken.None); 265await Task.WhenAll(connectTasks).ConfigureAwait(false); 335await Task.Delay(delay, _timeProvider, cancellationToken).ConfigureAwait(false); 421_ = Task.Run(async () => await DisconnectAsync(conn).ConfigureAwait(false)); 459await DisconnectAsync(connection).ConfigureAwait(false); 497await Task.CompletedTask.ConfigureAwait(false);
Backchannel\ExtensionBackchannel.cs (2)
114await ConnectCoreAsync().ConfigureAwait(false); 125await Task.Delay(1000, cancellationToken).ConfigureAwait(false);
Bundles\BundleService.cs (1)
84await EnsureExtractedAsync(cancellationToken).ConfigureAwait(false);
Caching\DiskCache.cs (1)
108await File.WriteAllTextAsync(tempFile, content, cancellationToken).ConfigureAwait(false);
Commands\AgentMcpCommand.cs (1)
206await _resourceToolRefreshService.SendToolsListChangedNotificationAsync(cancellationToken).ConfigureAwait(false);
Commands\AppHostLauncher.cs (2)
254await backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false); 274await childProcess.WaitForExitAsync(cancellationToken).WaitAsync(TimeSpan.FromMilliseconds(500), cancellationToken).ConfigureAwait(false);
Commands\DescribeCommand.cs (1)
143await Task.WhenAll(dashboardUrlsTask, snapshotsTask).ConfigureAwait(false);
Commands\ExportCommand.cs (3)
170await AddConsoleLogsAsync(exportArchive, connection, resourceName, snapshots, cancellationToken).ConfigureAwait(false); 179await AddStructuredLogsAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false); 186await AddTracesAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false);
Commands\PipelineCommandBase.cs (1)
269await backchannel.RequestStopAsync(cancellationToken).ConfigureAwait(false);
Commands\PsCommand.cs (1)
109await _backchannelMonitor.ScanAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\FileLoggerProvider.cs (1)
117await _writer.WriteLineAsync(message).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (4)
167await backchannel.ConnectAsync(socketPath, cancellationToken).ConfigureAwait(false); 196await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 396await Task.Delay(TimeSpan.FromSeconds(attempt + 1), cancellationToken).ConfigureAwait(false); 984await _diskCache.SetAsync(rawKey, stdout, cancellationToken).ConfigureAwait(false);
Git\GitRepository.cs (1)
39await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Mcp\Docs\DocsCache.cs (7)
69await SaveToDiskAsync(key, content, cancellationToken).ConfigureAwait(false); 110await DeleteETagFromDiskAsync(cancellationToken).ConfigureAwait(false); 116await SaveETagToDiskAsync(etag, cancellationToken).ConfigureAwait(false); 154await SaveIndexToDiskAsync(documents, cancellationToken).ConfigureAwait(false); 238await File.WriteAllTextAsync(tempPath, content, cancellationToken).ConfigureAwait(false); 274await File.WriteAllTextAsync(filePath, etag, cancellationToken).ConfigureAwait(false); 367await JsonSerializer.SerializeAsync(stream, documents, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false);
Mcp\Docs\DocsFetcher.cs (5)
68await _cache.SetETagAsync(SmallDocsUrl, null, cancellationToken).ConfigureAwait(false); 81await _cache.SetETagAsync(SmallDocsUrl, retryETag, cancellationToken).ConfigureAwait(false); 87await _cache.SetAsync(SmallDocsUrl, retryContent, cancellationToken).ConfigureAwait(false); 102await _cache.SetETagAsync(SmallDocsUrl, newETag, cancellationToken).ConfigureAwait(false); 107await _cache.SetAsync(SmallDocsUrl, content, cancellationToken).ConfigureAwait(false);
Mcp\Docs\DocsIndexService.cs (2)
139await _indexLock.WaitAsync(cancellationToken).ConfigureAwait(false); 178await _docsCache.SetIndexAsync([.. documents], cancellationToken).ConfigureAwait(false);
Mcp\McpResourceToolRefreshService.cs (1)
69await 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)
72await Task.WhenAll(dashboardUrlsTask, snapshotsTask).ConfigureAwait(false);
Mcp\Tools\RefreshToolsTool.cs (1)
23await refreshService.SendToolsListChangedNotificationAsync(cancellationToken).ConfigureAwait(false);
Npm\NpmRunner.cs (2)
134cancellationToken).ConfigureAwait(false); 253await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
OpenCode\OpenCodeCliRunner.cs (1)
38await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Program.cs (2)
676await app.StartAsync().ConfigureAwait(false); 769await app.StopAsync().ConfigureAwait(false);
Projects\AppHostRpcClient.cs (4)
105await pipeClient.ConnectAsync(cancellationToken).ConfigureAwait(false); 110await Task.Delay(100, cancellationToken).ConfigureAwait(false); 114await Task.Delay(100, cancellationToken).ConfigureAwait(false); 142await Task.Delay(100, cancellationToken).ConfigureAwait(false);
Projects\GuestAppHostProject.cs (3)
957await _backchannel.ConnectAsync(socketPath, autoReconnect: enableHotReload, cancellationToken).ConfigureAwait(false); 985await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 989await Task.Delay(50, cancellationToken).ConfigureAwait(false);
Projects\RunningInstanceManager.cs (1)
126await Task.Delay(ProcessTerminationPollIntervalMs, cancellationToken).ConfigureAwait(false);
Telemetry\AspireCliTelemetry.cs (2)
175await InitializeAsync().ConfigureAwait(false); 196await Task.WhenAll(new Task[] { macAddressHashTask, deviceIdTask }).ConfigureAwait(false);
Utils\ArchiveHelper.cs (2)
28await ExtractTarGzSafeAsync(archivePath, destinationPath, cancellationToken).ConfigureAwait(false); 107await entry.ExtractToFileAsync(fullPath, overwrite: true, cancellationToken).ConfigureAwait(false);
Utils\ConsoleActivityLogger.cs (2)
126await Task.Delay(120).ConfigureAwait(false); 144await _spinnerTask.ConfigureAwait(false);
Utils\FileLock.cs (1)
92await Task.Delay(s_defaultRetryDelay, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (4)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
TestServices\TestAppHostCliBackchannel.cs (2)
104await ConnectAsyncCallback.Invoke(socketPath, cancellationToken).ConfigureAwait(false); 250await Task.Delay(1, cancellationToken).ConfigureAwait(false);
Aspire.Dashboard (143)
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)
104await UpdateChartAsync(tickUpdate: false, inProgressDataTime).ConfigureAwait(false); 110await UpdateChartAsync(tickUpdate: true, inProgressDataTime).ConfigureAwait(false);
Components\Interactions\InteractionsProvider.cs (11)
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); 244await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 265await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false); 297await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 341await _semaphore.WaitAsync(_cts.Token).ConfigureAwait(false); 467await DashboardClient.SendInteractionRequestAsync(request, _cts.Token).ConfigureAwait(false);
Components\Pages\IPageWithSessionAndUrlState.cs (1)
82await page.SessionStorage.SetAsync(page.SessionStorageKey, serializableViewModel).ConfigureAwait(false);
DashboardEndpointsBuilder.cs (6)
41CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false); 142await StreamNdjsonAsync(httpContext, service.FollowSpansAsync(resource, traceId, hasError, cancellationToken), cancellationToken).ConfigureAwait(false); 173await StreamNdjsonAsync(httpContext, service.FollowLogsAsync(resource, traceId, severity, cancellationToken), cancellationToken).ConfigureAwait(false); 244await httpContext.Response.WriteAsync(json, cancellationToken).ConfigureAwait(false); 245await httpContext.Response.WriteAsync("\n", cancellationToken).ConfigureAwait(false); 246await httpContext.Response.Body.FlushAsync(cancellationToken).ConfigureAwait(false);
DashboardWebApplication.cs (2)
442await telemetryService.InitializeAsync().ConfigureAwait(false); 465await next(context).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\Assistant\AIContextProvider.cs (10)
121await subscription.ExecuteAsync().ConfigureAwait(false); 189await sendInitialPrompt(new InitializePromptContext(chatBuilder, viewModel.DataContext, _serviceProvider, _dashboardOptions.CurrentValue)).ConfigureAwait(false); 191await viewModel.AddFollowUpPromptAsync(chatBuilder.Build()).ConfigureAwait(false); 197await ExecuteSubscriptionsAsync(_displayChangedSubscriptions).ConfigureAwait(false); 198await initializeTask.ConfigureAwait(false); 240await ExecuteSubscriptionsAsync(_displayChangedSubscriptions).ConfigureAwait(false); 247await ExecuteSubscriptionsAsync(_displayChangedSubscriptions).ConfigureAwait(false); 259}).ConfigureAwait(false); 260await ExecuteSubscriptionsAsync(_displayChangedSubscriptions).ConfigureAwait(false); 269await ExecuteSubscriptionsAsync(_displayChangedSubscriptions).ConfigureAwait(false);
Model\Assistant\AIHelpers.cs (2)
331await onMessageCallback(newMessages).ConfigureAwait(false); 345await textUpdateCallback(item.Text).ConfigureAwait(false);
Model\Assistant\AssistantChatDataContext.cs (11)
50await callback(toolName, message, cancellationToken).ConfigureAwait(false); 64await InvokeToolCallbackAsync(nameof(GetResourceGraphAsync), _loc[nameof(AIAssistant.ToolNotificationResourceGraph)], cancellationToken).ConfigureAwait(false); 91await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 95await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTrace), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 115await InvokeToolCallbackAsync(nameof(GetStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationStructuredLogsResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 122await InvokeToolCallbackAsync(nameof(GetStructuredLogsAsync), toolMessage, cancellationToken).ConfigureAwait(false); 160await InvokeToolCallbackAsync(nameof(GetTracesAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 167await InvokeToolCallbackAsync(nameof(GetTracesAsync), toolMessage, cancellationToken).ConfigureAwait(false); 215await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 246await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogsFailure), resourceName), cancellationToken).ConfigureAwait(false); 250await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogs), resourceName), cancellationToken).ConfigureAwait(false);
Model\Assistant\AssistantChatViewModel.cs (29)
262await callback(toolName, message, cancellationToken).ConfigureAwait(false); 276await callback(chatViewModel, responseState, cancellationToken).ConfigureAwait(false); 286await callback(_cts.Token).ConfigureAwait(false); 297await InvokeInitializedCallbackAsync().ConfigureAwait(false); 309await InvokeInitializedCallbackAsync().ConfigureAwait(false); 316await addInitialPrompt().ConfigureAwait(false); 321await InvokeInitializedCallbackAsync().ConfigureAwait(false); 323await CallServiceAsync().ConfigureAwait(false); 327await InvokeInitializedCallbackAsync().ConfigureAwait(false); 423await callback(_cts.Token).ConfigureAwait(false); 493await _currentCallTask.ConfigureAwait(false); 524await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 542await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 551responseCts).ConfigureAwait(false); 581await conversationChangedTask.ConfigureAwait(false); 703await updateFollowUpPromptsTask.ConfigureAwait(false); 704await InvokeConversationChangedCallbackAsync(callAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 755await conversationChangedTask.ConfigureAwait(false); 761responseCts).ConfigureAwait(false); 777await conversationChangedTask.ConfigureAwait(false); 855await InvokeConversationChangedCallbackAsync(vm, ResponseState.Starting, _cts.Token).ConfigureAwait(false); 867await InvokeConversationChangedCallbackAsync(chatViewModel, ResponseState.Starting, _cts.Token).ConfigureAwait(false); 897await disconnectCallback().ConfigureAwait(false); 912new AssistantChatAssistantSettings(SelectedModel?.Family)).ConfigureAwait(false); 944await InvokeConversationChangedCallbackAsync(currentChatViewModel, ResponseState.Starting, _cts.Token).ConfigureAwait(false); 952await item.CreatePrompt(new InitializePromptContext(chatBuilder, _dataContext, _serviceProvider, _dashboardOptions.CurrentValue)).ConfigureAwait(false); 954await AddFollowUpPromptAsync(chatBuilder.Build()).ConfigureAwait(false); 956await CallServiceAsync().ConfigureAwait(false); 968await CallServiceAsync().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 (2)
52await ExecuteAsyncCore(resource, command, getResourceName).ConfigureAwait(false); 76await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
Model\InstrumentViewModel.cs (1)
25await subscription().ConfigureAwait(false);
Model\Interaction\InteractionsInputsDialogViewModel.cs (1)
29await OnInteractionUpdated().ConfigureAwait(false);
Model\ResourceMenuBuilder.cs (3)
123}).ConfigureAwait(false); 144}).ConfigureAwait(false); 161resource)).ConfigureAwait(false);
Model\ResourceOutgoingPeerResolver.cs (4)
46await RaisePeerChangesAsync().ConfigureAwait(false); 76await RaisePeerChangesAsync().ConfigureAwait(false); 283await subscription.ExecuteAsync().ConfigureAwait(false); 292await TaskHelpers.WaitIgnoreCancelAsync(_watchTask).ConfigureAwait(false);
Model\SpanMenuBuilder.cs (2)
123}).ConfigureAwait(false); 139span)).ConfigureAwait(false);
Model\StructuredLogMenuBuilder.cs (3)
89}).ConfigureAwait(false); 107}).ConfigureAwait(false); 123logEntry)).ConfigureAwait(false);
Model\TelemetryExportService.cs (1)
100await AddConsoleLogsAsync(exportArchive, consoleLogResources, cancellationToken).ConfigureAwait(false);
Model\TelemetryImportService.cs (5)
57await ImportCoreAsync(fileName, stream, allowZipFile: true, cancellationToken).ConfigureAwait(false); 75await stream.CopyToAsync(memoryStream, cancellationToken).ConfigureAwait(false); 78await ImportZipAsync(memoryStream, cancellationToken).ConfigureAwait(false); 81await ImportJsonAsync(fileName, stream, cancellationToken).ConfigureAwait(false); 100await ImportCoreAsync(entry.Name, entryStream, allowZipFile: false, cancellationToken).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\TraceMenuBuilder.cs (2)
111}).ConfigureAwait(false); 130}).ConfigureAwait(false);
Model\ValidateTokenMiddleware.cs (2)
66await _next(context).ConfigureAwait(false); 101new 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);
ServiceClient\DashboardClient.cs (9)
252await ConnectAsync().ConfigureAwait(false); 257await WatchWithRecoveryAsync(WatchResourcesAsync, "resources", cancellationToken).ConfigureAwait(false); 262await WatchWithRecoveryAsync(WatchInteractionsAsync, "interactions", cancellationToken).ConfigureAwait(false); 264}, cancellationToken)).ConfigureAwait(false); 317await Task.Delay(delay, cancellationToken).ConfigureAwait(false); 472await call.RequestStream.WriteAsync(update).ConfigureAwait(false); 602await _initialDataReceivedTcs.Task.WaitAsync(cts.Token).ConfigureAwait(false); 722await readTask.ConfigureAwait(false); 800await TaskHelpers.WaitIgnoreCancelAsync(_connection, _logger, "Unexpected error from connection task.").ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
43await Task.Delay(s, 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);
Utils\CallbackThrottler.cs (2)
53await Task.Delay(s, cancellationToken).ConfigureAwait(false); 115await _callback().ConfigureAwait(false);
Utils\CancellationSeries.cs (2)
40await Next(nextCts).ConfigureAwait(false); 64await priorCts.CancelAsync().ConfigureAwait(false);
Utils\FilterHelpers.cs (3)
61await page.AfterViewModelChangedAsync(contentLayout, waitToApplyMobileChange: false).ConfigureAwait(true); 78await page.AfterViewModelChangedAsync(contentLayout, waitToApplyMobileChange: false).ConfigureAwait(true); 90await page.AfterViewModelChangedAsync(contentLayout, waitToApplyMobileChange: false).ConfigureAwait(true);
Utils\GlobalizationHelpers.cs (1)
150await 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 (368)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (1)
26await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
112await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\CommandsConfigurationExtensions.cs (16)
29await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 62await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 101await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 102await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 216await Task.WhenAll(replicasToStop.Select(name => orchestrator.StopResourceAsync(name, context.CancellationToken))).ConfigureAwait(false); 225).ConfigureAwait(false); 236await orchestrator.StartResourceAsync(rebuilderInstanceName, context.CancellationToken).ConfigureAwait(false); 263}).ConfigureAwait(false); 296}).ConfigureAwait(false); 298await orchestrator.StartResourceAsync(name, context.CancellationToken).ConfigureAwait(false); 314}).ConfigureAwait(false); 327}).ConfigureAwait(false); 339}).ConfigureAwait(false); 344await StopLogForwardingAsync(logCts, logForwardTask).ConfigureAwait(false); 350await logCts.CancelAsync().ConfigureAwait(false); 354await logForwardTask.ConfigureAwait(false);
ApplicationModel\Docker\DockerfileBuilder.cs (5)
114await arg.WriteStatementAsync(writer, cancellationToken).ConfigureAwait(false); 118await writer.WriteLineAsync().ConfigureAwait(false); 123await stage.WriteStatementAsync(writer, cancellationToken).ConfigureAwait(false); 128await writer.WriteLineAsync().ConfigureAwait(false); 132await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\Docker\DockerfileStage.cs (1)
284await 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 (2)
89await _materializationLock.WaitAsync(cancellationToken).ConfigureAwait(false); 99await File.WriteAllTextAsync(DockerfilePath, dockerfileContent, cancellationToken).ConfigureAwait(false);
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
25await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
80await callback.Callback(callbackContext).ConfigureAwait(false);
ApplicationModel\ProjectResource.cs (5)
131await containerImageBuilder.BuildImageAsync(this, ctx.CancellationToken).ConfigureAwait(false); 150await containerRuntime.TagImageAsync(originalImageName, tempImageName, ctx.CancellationToken).ConfigureAwait(false); 179await dockerfileBuilder.WriteAsync(writer, ctx.CancellationToken).ConfigureAwait(false); 204ctx.CancellationToken).ConfigureAwait(false); 235await containerRuntime.RemoveImageAsync(tempImageName, ctx.CancellationToken).ConfigureAwait(false);
ApplicationModel\RequiredCommandValidator.cs (1)
65await state.Gate.WaitAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceExtensions.cs (9)
274await callback.Callback(context).ConfigureAwait(false); 371await callback.Callback(context).ConfigureAwait(false); 465await annotation.Callback(context).ConfigureAwait(false); 567await callback.Callback(containerRunArgsContext).ConfigureAwait(false); 1152await callback.Callback(context).ConfigureAwait(false); 1330await GatherDirectDependenciesAsync(resource, dependencies, newDependencies, executionContext, cancellationToken).ConfigureAwait(false); 1346await GatherDirectDependenciesAsync(dep, dependencies, newDependencies, executionContext, cancellationToken).ConfigureAwait(false); 1415await callback.Callback(context).ConfigureAwait(false); 1432await callback.Callback(context).ConfigureAwait(false);
ApplicationModel\ResourceLoggerService.cs (2)
327await Task.WhenAll(readTasks).ConfigureAwait(false); 340await completionTask.ConfigureAwait(false);
ApplicationModel\ResourceNotificationService.cs (11)
164await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 167}, cancellationToken).ConfigureAwait(false); 246await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 283: s).ConfigureAwait(false); 291await Task.WhenAll(tasks).ConfigureAwait(false); 349: s).ConfigureAwait(false); 360await Task.WhenAll(tasks).ConfigureAwait(false); 399await postRunningAction(resourceLogger, displayName, resourceId, resourceEvent).ConfigureAwait(false); 423}, cancellationToken).ConfigureAwait(false); 459await Task.WhenAll(pendingDependencies).ConfigureAwait(false); 847await PublishUpdateAsync(resource, resourceName, stateFactory).ConfigureAwait(false);
Ats\BuilderExports.cs (2)
208await callback(@event).ConfigureAwait(false); 232await callback(@event).ConfigureAwait(false);
Backchannel\AppHostRpcTarget.cs (2)
201await activityReporter.CompleteInteractionAsync(promptId, answers, updateResponse: false, cancellationToken).ConfigureAwait(false); 206await activityReporter.CompleteInteractionAsync(promptId, answers, updateResponse: true, cancellationToken).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
205await StopAppHostAsync(cancellationToken).ConfigureAwait(false); 456await AddResult(instanceName).ConfigureAwait(false); 842await Task.Delay(500, CancellationToken.None).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelService.cs (3)
94_ = Task.Run(async () => await HandleClientConnectionAsync(clientSocket, stoppingToken).ConfigureAwait(false), stoppingToken); 144stoppingToken).ConfigureAwait(false); 169await rpc.Completion.ConfigureAwait(false);
Backchannel\BackchannelService.cs (2)
64stoppingToken).ConfigureAwait(false); 81stoppingToken).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)
50ctx.CancellationToken).ConfigureAwait(false); 1477await cb(callbackContext).ConfigureAwait(false); 1488await dockerfileBuilder.WriteAsync(writer, factoryContext.CancellationToken).ConfigureAwait(false); 1489await writer.FlushAsync(factoryContext.CancellationToken).ConfigureAwait(false);
Dashboard\DashboardEventHandlers.cs (1)
927await _dashboardLogsTask.ConfigureAwait(false);
Dashboard\DashboardService.cs (9)
63context).ConfigureAwait(false); 176await responseStream.WriteAsync(change, cts.Token).ConfigureAwait(false); 194await serviceData.SendInteractionRequestAsync(request, cts.Token).ConfigureAwait(false); 259context).ConfigureAwait(false); 272await responseStream.WriteAsync(new() { InitialData = data }, cancellationToken).ConfigureAwait(false); 298await responseStream.WriteAsync(new() { Changes = changes }, cancellationToken).ConfigureAwait(false); 310context).ConfigureAwait(false); 355await responseStream.WriteAsync(update, cancellationToken).ConfigureAwait(false); 385await execute(cts.Token).ConfigureAwait(false);
Dashboard\DashboardServiceData.cs (1)
189cancellationToken).ConfigureAwait(false);
Dashboard\DashboardServiceHost.cs (2)
205await _app.StartAsync(cancellationToken).ConfigureAwait(false); 225await _app.StopAsync(cancellationToken).ConfigureAwait(false);
Dcp\DcpDependencyCheck.cs (1)
34await _lock.WaitAsync(cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (57)
166await PrepareServicesAsync(ct).ConfigureAwait(false); 176await _executorEvents.PublishAsync(new OnResourcesPreparedContext(ct)).ConfigureAwait(false); 188await createServices.ConfigureAwait(false); 193await UpdateWithEffectiveAddressInfo(proxiedWithNoAddress, ct, TimeSpan.FromMinutes(1)).ConfigureAwait(false); 203await getProxyAddresses.ConfigureAwait(false); 206await PublishEndpointAllocatedEventAsync(endpointsAdvertised, executables, ct).ConfigureAwait(false); 211await createExecutableEndpoints.ConfigureAwait(false); 213await CreateExecutablesAsync(executables, ct).ConfigureAwait(false); 218await Task.WhenAll([getProxyAddresses, createContainerNetworks]).ConfigureAwait(false); 221await PublishEndpointAllocatedEventAsync(endpointsAdvertised, regular, ct).ConfigureAwait(false); 226).WaitAsync(ct).ConfigureAwait(false); 236await Task.WhenAll([getProxyAddresses, createContainerNetworks]).ConfigureAwait(false); 238await CreateAllDcpObjectsAsync<ContainerNetworkTunnelProxy>(ct).ConfigureAwait(false); 239await EnsureContainerServiceAddressInfo(ct).ConfigureAwait(false); 251await Task.WhenAll([getProxyAddresses, createContainerNetworks, createExecutableEndpoints]).ConfigureAwait(false); 257await PublishEndpointAllocatedEventAsync(endpointsAdvertised, tunnelDependent, ct).ConfigureAwait(false); 262).WaitAsync(ct).ConfigureAwait(false); 271).WaitAsync(ct).ConfigureAwait(false); 273await _executorEvents.PublishAsync(new OnEndpointsAllocatedContext(ct)).ConfigureAwait(false); 313await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 331await _kubernetesService.CleanupResourcesAsync(cancellationToken).ConfigureAwait(false); 345await _kubernetesService.StopServerAsync(Model.ResourceCleanup.Full, cancellationToken).ConfigureAwait(false); 362await StopAsync(disposeCts.Token).ConfigureAwait(false); 379Task.Run(() => WatchKubernetesResourceAsync<Endpoint>(ProcessEndpointChange))).ConfigureAwait(false); 457await outputSemaphore.WaitAsync(pipelineCancellationToken).ConfigureAwait(false); 461await handler(eventType, resource).ConfigureAwait(false); 528await _executorEvents.PublishAsync(new OnResourceChangedContext(_shutdownCancellation.Token, resourceType, appModelResource, resource.Metadata.Name, status, s => snapshotFactory(resource, s))).ConfigureAwait(false); 818})).ConfigureAwait(false); 941await UpdateWithEffectiveAddressInfo(tunnelServices, cancellationToken, TimeSpan.FromMinutes(10)).ConfigureAwait(false); 993await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 1602await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 1640).ConfigureAwait(false); 1648).ConfigureAwait(false); 1661await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resource, DcpResourceName: null)).ConfigureAwait(false); 1666await createResourceFunc(er, resourceLogger, cancellationToken).ConfigureAwait(false); 1678await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false); 1686await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false); 1697await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resource, DcpResourceName: null)).ConfigureAwait(false); 2071await CreateContainerAsync(cr, logger, cancellationToken).ConfigureAwait(false); 2083await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName)).ConfigureAwait(false); 2088await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName)).ConfigureAwait(false); 2098await _executorEvents.PublishAsync(new OnResourceChangedContext(_shutdownCancellation.Token, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName, new ResourceStatus(null, null, null), s => _snapshotBuilder.ToSnapshot((Container)cr.DcpResource, s))).ConfigureAwait(false); 2112await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 2134await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResource.Metadata.Name)).ConfigureAwait(false); 2137await ApplyBuildArgumentsAsync(dcpContainerResource, modelContainerResource, _executionContext.ServiceProvider, cancellationToken).ConfigureAwait(false); 2370await DockerfileHelper.ExecuteDockerfileFactoryAsync(dockerfileBuildAnnotation, modelContainerResource, serviceProvider, cancellationToken).ConfigureAwait(false); 2651await EnsureResourceDeletedAsync<Container>(appResource.DcpResourceName).ConfigureAwait(false); 2656await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResourceName)).ConfigureAwait(false); 2657await CreateContainerAsync(appResource, resourceLogger, cancellationToken).ConfigureAwait(false); 2660await EnsureResourceDeletedAsync<Executable>(appResource.DcpResourceName).ConfigureAwait(false); 2662await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResourceName)).ConfigureAwait(false); 2663await CreateExecutableAsync(appResource, resourceLogger, cancellationToken).ConfigureAwait(false); 2675await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResourceName)).ConfigureAwait(false); 2680await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResourceName)).ConfigureAwait(false); 2837await _serverCertificateCacheSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 2903await File.WriteAllTextAsync(keyFileName, new string(pemKey), cancellationToken).ConfigureAwait(false); 3143await _distributedApplicationEventing.PublishAsync(ev, EventDispatchBehavior.NonBlockingConcurrent, ct).ConfigureAwait(false);
Dcp\DcpExecutorEvents.cs (1)
33await callback(context).ConfigureAwait(false);
Dcp\DcpHost.cs (5)
77await EnsureDcpContainerRuntimeAsync(cancellationToken).ConfigureAwait(false); 78await EnsureDevelopmentCertificateTrustAsync(cancellationToken).ConfigureAwait(false); 113await Task.Delay(TimeSpan.FromSeconds(2), timeoutCancellation.Token).ConfigureAwait(false); 199await TaskHelpers.WaitIgnoreCancelAsync(_logProcessorTask, _logger, "Error in logging socket processor.").ConfigureAwait(false); 345await Task.WhenAll(outputLoggers).ConfigureAwait(false);
Dcp\KubernetesService.cs (2)
482await EnsureKubernetesAsync(cancellationToken).ConfigureAwait(false); 591await Task.Delay(TimeSpan.FromMilliseconds(dcpOptions.Value.KubernetesConfigReadRetryIntervalMilliseconds), cancellationToken).ConfigureAwait(false);
Dcp\Process\ProcessUtil.cs (1)
167await _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);
DistributedApplication.cs (8)
437await ExecuteBeforeStartHooksAsync(cancellationToken).ConfigureAwait(false); 440await _host.StartAsync(cancellationToken).ConfigureAwait(false); 446await _host.StopAsync(cancellationToken).ConfigureAwait(false); 490await ExecuteBeforeStartHooksAsync(cancellationToken).ConfigureAwait(false); 493await _host.RunAsync(cancellationToken).ConfigureAwait(false); 536await subscriber.SubscribeAsync(eventing, execContext, cancellationToken).ConfigureAwait(false); 540await eventing.PublishAsync(beforeStartEvent, cancellationToken).ConfigureAwait(false); 549await lifecycleHook.BeforeStartAsync(appModel, cancellationToken).ConfigureAwait(false);
DotnetToolResourceExtensions.cs (1)
112}).ConfigureAwait(false);
Eventing\DistributedApplicationEventing.cs (6)
42await Task.WhenAll(pendingSubscriptionCallbacks).ConfigureAwait(false); 48await Task.WhenAll(pendingSubscriptionCallbacks).ConfigureAwait(false); 60await subscription.Callback(@event, cancellationToken).ConfigureAwait(false); 69await subscription.Callback(@event, cancellationToken).ConfigureAwait(false); 82await callback(typedEvent, ct).ConfigureAwait(false); 112await callback(@event, cancellationToken).ConfigureAwait(false);
Exec\ExecResourceManager.cs (2)
97await _resourceNotificationService.WaitForResourceAsync(execResource!.Name, targetState: KnownResourceStates.Running, cancellationToken).ConfigureAwait(false); 108await Task.Delay(1000, CancellationToken.None).ConfigureAwait(false);
ExternalServiceBuilderExtensions.cs (4)
127}).ConfigureAwait(false); 139}).ConfigureAwait(false); 147await e.Eventing.PublishAsync(new BeforeResourceStartedEvent(e.Resource, e.Services), ct).ConfigureAwait(false); 156}).ConfigureAwait(false);
Health\ResourceHealthCheckService.cs (3)
58await MonitorResourceHealthAsync(state).ConfigureAwait(false); 206}).ConfigureAwait(false); 282.ConfigureAwait(false);
IInteractionService.cs (1)
177}).ConfigureAwait(false);
InteractionService.cs (1)
439await validationCallback(context).ConfigureAwait(false);
Orchestrator\ApplicationOrchestrator.cs (36)
89.ConfigureAwait(false); 117await completedTask.ConfigureAwait(false); 132await _eventing.PublishAsync(afterEndpointsAllocatedEvent, context.CancellationToken).ConfigureAwait(false); 136await lifecycleHook.AfterEndpointsAllocatedAsync(_model, context.CancellationToken).ConfigureAwait(false); 143await ProcessResourceUrlCallbacks(resource, cancellationToken).ConfigureAwait(false); 147await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 177.ConfigureAwait(false); 187.ConfigureAwait(false); 190await SetChildResourceAsync(context.Resource, state: KnownResourceStates.Starting, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 196await PublishConnectionStringAvailableEvent(context.Resource, context.CancellationToken).ConfigureAwait(false); 199await _eventing.PublishAsync(beforeResourceStartedEvent, context.CancellationToken).ConfigureAwait(false); 211await PublishResourcesInitialStateAsync(context.CancellationToken).ConfigureAwait(false); 376await callback.Callback(urlsCallbackContext).ConfigureAwait(false); 488await PublishResourceEndpointUrls(@event.Resource, cancellationToken).ConfigureAwait(false); 500await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false); 504await SetChildResourceAsync(context.Resource, context.Status.State, context.Status.StartupTimestamp, context.Status.FinishedTimestamp).ConfigureAwait(false); 519await PublishEventToHierarchy(r => new ResourceStoppedEvent(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false); 528await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 532await SetChildResourceAsync(context.Resource, KnownResourceStates.FailedToStart, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 537await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 543await _dcpExecutor.RunApplicationAsync(cancellationToken).ConfigureAwait(false); 546await _eventing.PublishAsync(afterResourcesCreatedEvent, cancellationToken).ConfigureAwait(false); 550await lifecycleHook.AfterResourcesCreatedAsync(_model, cancellationToken).ConfigureAwait(false); 558await _dcpExecutor.StopAsync(cancellationToken).ConfigureAwait(false); 580}).ConfigureAwait(false); 586await _dcpExecutor.StartResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false); 593await _dcpExecutor.StopResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false); 611}).ConfigureAwait(false); 615.ConfigureAwait(false); 622await _parameterProcessor.InitializeParametersAsync(_model.Resources.OfType<ParameterResource>(), waitForResolution: false).ConfigureAwait(false); 643}).ConfigureAwait(false); 647await _eventing.PublishAsync(initializeEvent, EventDispatchBehavior.NonBlockingConcurrent, cancellationToken).ConfigureAwait(false); 668await _eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false); 683await PublishConnectionStringAvailableEvent(child, cancellationToken).ConfigureAwait(false); 692await _eventing.PublishAsync(createEvent(resource), cancellationToken).ConfigureAwait(false); 704await 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 (18)
52await ProcessParameterAsync(parameterResource).ConfigureAwait(false); 64await task.ConfigureAwait(false); 81await HandleUnresolvedParametersAsync(_unresolvedParameters, cts.Token).ConfigureAwait(false); 107await CollectDependentParameterResourcesAsync(model, referencedParameters, cancellationToken).ConfigureAwait(false); 116await InitializeParametersAsync(allParameters, waitForResolution).ConfigureAwait(false); 122await SaveParametersToDeploymentStateAsync(allParameters, cancellationToken).ConfigureAwait(false); 156await UpdateParameterStateAsync(parameterResource, value, KnownResourceStates.Running).ConfigureAwait(false); 191await UpdateParameterStateAsync(parameterResource, ex.Message, new(stateText, stateStyle)).ConfigureAwait(false); 202await SetParameterAsync(parameterResource, context.CancellationToken).ConfigureAwait(false); 218await DeleteParameterAsync(parameterResource, context.CancellationToken).ConfigureAwait(false); 300await ApplyParameterValueAsync(parameterResource, inputValue, shouldSave, cancellationToken).ConfigureAwait(false); 380await deploymentStateManager.DeleteSectionAsync(parameterSection, cancellationToken).ConfigureAwait(false); 405await UpdateParameterStateAsync(parameterResource, "Parameter value has been deleted", new("Value missing", KnownResourceStateStyles.Warn)).ConfigureAwait(false); 428await UpdateParameterStateAsync(parameterResource, inputValue, KnownResourceStates.Running).ConfigureAwait(false); 441await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false); 534await ApplyParameterValueAsync(parameter, inputValue, shouldSave, cancellationToken).ConfigureAwait(false); 576await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false); 601}).ConfigureAwait(false);
Pipelines\DistributedApplicationPipeline.cs (8)
53await parameterProcessor.InitializeParametersAsync(context.Model, waitForResolution: true, context.CancellationToken).ConfigureAwait(false); 367await ExecuteConfigurationCallbacksAsync(context, allSteps).ConfigureAwait(false); 386await ExecuteStepsAsTaskDag(stepsToExecute, stepsByName, context).ConfigureAwait(false); 539await callback(configContext).ConfigureAwait(false); 621await Task.WhenAll(depTasks).ConfigureAwait(false); 658await ExecuteStepAsync(step, stepContext).ConfigureAwait(false); 706await Task.WhenAll(allStepTasks).ConfigureAwait(false); 842await step.Action(stepContext).ConfigureAwait(false);
Pipelines\Internal\DeploymentStateManagerBase.cs (10)
72await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 111await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 114await SaveStateToStorageAsync(state, cancellationToken).ConfigureAwait(false); 143await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 205await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false); 209await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 214await SaveStateToStorageAsync(_state, cancellationToken).ConfigureAwait(false); 225await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false); 229await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false); 234await SaveStateToStorageAsync(_state, cancellationToken).ConfigureAwait(false);
Pipelines\Internal\FileDeploymentStateManager.cs (1)
131cancellationToken).ConfigureAwait(false);
Pipelines\Internal\UserSecretsDeploymentStateManager.cs (1)
40await _userSecretsManager.SaveStateAsync(state, cancellationToken).ConfigureAwait(false);
Pipelines\PipelineActivityReporter.cs (3)
305await WriteInteractionUpdateToClientAsync(interaction, cancellationToken).ConfigureAwait(false); 463cancellationToken).ConfigureAwait(false); 476await _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)
162await Reporter.CompleteStepAsync(this, completionText, completionState, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false); 175await Reporter.CompleteStepAsync(this, completionText.Value, completionState, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false); 208await 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 (4)
52localImageName, targetImageName).ConfigureAwait(false); 65imageName).ConfigureAwait(false); 76await TagImageAsync(localImageName, remoteImageName, cancellationToken).ConfigureAwait(false); 86remoteImageName).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)
94await WriteResourceAsync(resource).ConfigureAwait(false); 97await WriteReferencedResources(model).ConfigureAwait(false); 101await WriteConditionalExpressionsAsync().ConfigureAwait(false); 106await Writer.FlushAsync(cancellationToken).ConfigureAwait(false); 120await WriteResourceObjectAsync(resource, () => manifestPublishingCallbackAnnotation.Callback(this)).ConfigureAwait(false); 125await WriteResourceObjectAsync(container, () => WriteContainerAsync(container)).ConfigureAwait(false); 129await WriteResourceObjectAsync(project, () => WriteProjectAsync(project)).ConfigureAwait(false); 133await WriteResourceObjectAsync(executable, () => WriteExecutableAsync(executable)).ConfigureAwait(false); 137await WriteResourceObjectAsync(parameter, () => WriteParameterAsync(parameter)).ConfigureAwait(false); 141await WriteResourceObjectAsync(resource, () => WriteConnectionStringAsync(resourceWithConnectionString)).ConfigureAwait(false); 145await WriteResourceObjectAsync(resource, WriteErrorAsync).ConfigureAwait(false); 151await action().ConfigureAwait(false); 199await WriteDeploymentTarget(deploymentTarget).ConfigureAwait(false); 204await WriteCommandLineArgumentsAsync(project).ConfigureAwait(false); 206await WriteEnvironmentVariablesAsync(project).ConfigureAwait(false); 217await manifestPublishingCallbackAnnotation.Callback(this).ConfigureAwait(false); 270await WriteCommandLineArgumentsAsync(executable).ConfigureAwait(false); 272await WriteEnvironmentVariablesAsync(executable).ConfigureAwait(false); 324await WriteBuildContextAsync(container).ConfigureAwait(false); 348await WriteDeploymentTarget(deploymentTarget).ConfigureAwait(false); 357await WriteCommandLineArgumentsAsync(container).ConfigureAwait(false); 365await WriteEnvironmentVariablesAsync(container).ConfigureAwait(false); 376await DockerfileHelper.ExecuteDockerfileFactoryAsync(annotation, container, ExecutionContext.ServiceProvider, CancellationToken).ConfigureAwait(false); 919await WriteResourceAsync(resource).ConfigureAwait(false);
Publishing\ManifestPublishingExtensions.cs (1)
69await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false);
Publishing\PipelineExecutor.cs (6)
41await backchannelService.BackchannelConnected.ConfigureAwait(false); 53).ConfigureAwait(false); 60).ConfigureAwait(false); 66await activityReporter.CompletePublishAsync(new PublishCompletionOptions { PipelineSummary = summaryItems }, stoppingToken).ConfigureAwait(false); 84await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.CompletedWithError }, stoppingToken).ConfigureAwait(false); 107await pipeline.ExecuteAsync(pipelineContext).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (14)
29await step.CompleteAsync(completionText, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 45await step.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 62await step.CompleteAsync(completionText, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 78await step.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 95await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 111await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 127await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false); 143await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false); 159await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 175await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false); 191await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 207await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false); 223await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 239await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Publishing\ResourceContainerImageManager.cs (7)
229await BuildImageAsync(resource, cancellationToken).ConfigureAwait(false); 264cancellationToken).ConfigureAwait(false); 280cancellationToken).ConfigureAwait(false); 297await _throttle.WaitAsync(cancellationToken).ConfigureAwait(false); 432await dockerfileBuildAnnotation.MaterializeDockerfileAsync(context, cancellationToken).ConfigureAwait(false); 481cancellationToken).ConfigureAwait(false); 517await ContainerRuntime.PushImageAsync(resource, cancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (1)
2482await commandOptions.PrepareRequest(requestContext).ConfigureAwait(false);
ResourceLoggerForwarderService.cs (1)
53await Task.WhenAll(logWatchTasks).ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
43await Task.Delay(s, cancellationToken).ConfigureAwait(false);
src\Shared\TaskHelpers.cs (1)
29await task.ConfigureAwait(false);
UserSecrets\UserSecretsManagerFactory.cs (2)
143await _semaphore.WaitAsync(cancellationToken).ConfigureAwait(false); 150await File.WriteAllTextAsync(FilePath, json, Encoding.UTF8, cancellationToken).ConfigureAwait(false);
Utils\DockerfileHelper.cs (1)
35await annotation.MaterializeDockerfileAsync(context, cancellationToken).ConfigureAwait(false);
VersionChecking\VersionCheckService.cs (1)
71await CheckForLatestAsync(stoppingToken).ConfigureAwait(false);
Aspire.Hosting.Azure (61)
AcrLoginService.cs (1)
79await _containerRuntime.LoginToRegistryAsync(registryEndpoint, AcrUsername, refreshToken, cancellationToken).ConfigureAwait(false);
AzureBicepResource.cs (7)
53Action = async ctx => await ProvisionAzureBicepResourceAsync(ctx, this).ConfigureAwait(false), 335context.CancellationToken).ConfigureAwait(false); 341.ConfigureAwait(false); 346context.CancellationToken).ConfigureAwait(false); 361context.CancellationToken).ConfigureAwait(false); 596await Resource.ProvisioningTaskCompletionSource.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 654await provisioning.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
AzureEnvironmentResource.cs (2)
178context.CancellationToken).ConfigureAwait(false); 185context.CancellationToken).ConfigureAwait(false);
AzurePublishingContext.cs (13)
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); 177await VisitAsync(existingAnnotation.ResourceGroup, MapParameterAsync, cancellationToken).ConfigureAwait(false); 178await VisitAsync(existingAnnotation.Name, MapParameterAsync, cancellationToken).ConfigureAwait(false); 184await VisitAsync(parameter.Value, MapParameterAsync, cancellationToken).ConfigureAwait(false); 314await computeEnvironmentTask.CompleteAsync(message, state, cancellationToken).ConfigureAwait(false); 350await dockerfileBuildAnnotation.MaterializeDockerfileAsync(context, cancellationToken).ConfigureAwait(false); 469await visitor(value, cancellationToken).ConfigureAwait(false); 475await VisitAsync(reference, visitor, visited, cancellationToken).ConfigureAwait(false); 493await File.WriteAllTextAsync(bicepPath, compiledBicep.Value).ConfigureAwait(false);
AzureResourcePreparer.cs (1)
40await BuildRoleAssignmentAnnotations(@event.Model, azureResources, cancellationToken).ConfigureAwait(false);
Provisioning\BicepUtilities.cs (2)
129await SetParametersAsync(parameters, resource, skipKnownValues: true, cancellationToken: cancellationToken).ConfigureAwait(false); 132await SetScopeAsync(scope, resource, cancellationToken).ConfigureAwait(false);
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
186await deploymentStateManager.SaveSectionAsync(azureStateSection, cancellationToken).ConfigureAwait(false);
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (5)
67await RetrieveAzureProvisioningOptions(cancellationToken).ConfigureAwait(false); 89await PromptForTenantAsync(cancellationToken).ConfigureAwait(false); 98await PromptForSubscriptionAsync(cancellationToken).ConfigureAwait(false); 107await PromptForLocationAndResourceGroupAsync(cancellationToken).ConfigureAwait(false); 405await PromptForLocationAsync(cancellationToken).ConfigureAwait(false);
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
81await RetrieveAzureProvisioningOptions().ConfigureAwait(false); 97await _provisioningOptionsAvailable.Task.ConfigureAwait(false);
Provisioning\Provisioners\AzureProvisioner.cs (17)
45await notificationService.PublishUpdateAsync(resource.AzureResource, stateFactory).ConfigureAwait(false); 52await notificationService.PublishUpdateAsync(resource.Resource, stateFactory).ConfigureAwait(false); 73await notificationService.PublishUpdateAsync(child, stateFactory).ConfigureAwait(false); 82await resource.AzureResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false); 91.ConfigureAwait(false); 100.ConfigureAwait(false); 108.ConfigureAwait(false); 121await roleAssignment.RolesResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false); 131.ConfigureAwait(false); 147.ConfigureAwait(false); 190await eventing.PublishAsync(beforeResourceStartedEvent, cancellationToken).ConfigureAwait(false); 211await PublishConnectionStringAvailableEventAsync().ConfigureAwait(false); 231cancellationToken).ConfigureAwait(false); 234await PublishConnectionStringAvailableEventAsync().ConfigureAwait(false); 255await PublishConnectionStringAvailableEventRecursiveAsync(resource.Resource).ConfigureAwait(false); 264await eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false); 274await PublishConnectionStringAvailableEventRecursiveAsync(child).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (9)
110}).ConfigureAwait(false); 140}).ConfigureAwait(false); 157.ConfigureAwait(false); 164await BicepUtilities.SetParametersAsync(parameters, resource, cancellationToken: cancellationToken).ConfigureAwait(false); 167await BicepUtilities.SetScopeAsync(scope, resource, cancellationToken: cancellationToken).ConfigureAwait(false); 178.ConfigureAwait(false); 210.ConfigureAwait(false); 266await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false); 298.ConfigureAwait(false);
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
167await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Azure.AppContainers (6)
AzureContainerAppEnvironmentResource.cs (1)
140context.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)
79await context.ProcessResourceAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppService (9)
AzureAppServiceEnvironmentContext.cs (1)
41await context.ProcessAsync(cancellationToken).ConfigureAwait(false);
AzureAppServiceEnvironmentResource.cs (4)
156context.CancellationToken).ConfigureAwait(false); 167context.CancellationToken).ConfigureAwait(false); 208context.CancellationToken).ConfigureAwait(false); 217context.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)
52context.CancellationToken).ConfigureAwait(false); 57context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
267await CreateDatabaseAsync(adminProvider, kustoDatabase, evt.Services, ct).ConfigureAwait(false); 300}).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.DevTunnels (20)
DevTunnelCli.cs (2)
277await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 289await Task.WhenAll(stdoutTask, stderrTask).ConfigureAwait(false);
DevTunnelCliClient.cs (2)
120await Task.Delay(_cliRetryOnErrorDelay, cancellationToken).ConfigureAwait(false); 208await Task.Delay(_cliRetryOnErrorDelay, cancellationToken).ConfigureAwait(false);
DevTunnelHealthCheck.cs (1)
68_ = Task.Run(() => _loggedOutNotificationManager.NotifyUserLoggedOutAsync(cancellationToken).ConfigureAwait(false));
DevTunnelResourceBuilderExtensions.cs (11)
145await devTunnelEnvironmentManager.EnsureUserLoggedInAsync(ct).ConfigureAwait(false); 175await Task.WhenAll(portTasks).ConfigureAwait(false); 198}).ConfigureAwait(false); 222await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, e.Services), EventDispatchBehavior.NonBlockingConcurrent, ct).ConfigureAwait(false); 688await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, services), EventDispatchBehavior.NonBlockingSequential, ct).ConfigureAwait(false); 693}).ConfigureAwait(false); 702await eventing.PublishAsync<ResourceEndpointsAllocatedEvent>(new(portResource, services), ct).ConfigureAwait(false); 721}).ConfigureAwait(false); 739}).ConfigureAwait(false); 767}).ConfigureAwait(false); 768await 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 (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Docker (14)
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 (4)
272context.CancellationToken).ConfigureAwait(false); 278await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 331context.CancellationToken).ConfigureAwait(false); 337await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
DockerComposePublishingContext.cs (3)
61await WriteDockerComposeOutputAsync(model, environment).ConfigureAwait(false); 95await dockerfileBuildAnnotation.MaterializeDockerfileAsync(dockerfileContext, cancellationToken).ConfigureAwait(false); 151await File.WriteAllTextAsync(outputFile, composeOutput, cancellationToken).ConfigureAwait(false);
DockerComposeServiceResource.cs (2)
48Action = async ctx => await PrintEndpointsAsync(ctx, _composeEnvironmentResource).ConfigureAwait(false), 128await AddEnvironmentVariablesAndCommandLineArgsAsync(composeService).ConfigureAwait(false);
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
167await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.DotnetTool.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Foundry (14)
FoundryExtensions.cs (12)
254}).ConfigureAwait(false); 258await manager.StartServiceAsync(ct).ConfigureAwait(false); 273}).ConfigureAwait(false); 281}).ConfigureAwait(false); 311}).ConfigureAwait(false); 327await eventing.PublishAsync(connectionStringAvailableEvent, ct).ConfigureAwait(false); 332}).ConfigureAwait(false); 337}).ConfigureAwait(false); 346}).ConfigureAwait(false); 356}).ConfigureAwait(false); 365}).ConfigureAwait(false); 373}).ConfigureAwait(false);
HostedAgent\AzureHostedAgentResource.cs (1)
168await callback.Callback(envContext).ConfigureAwait(false);
Project\ProjectResource.cs (1)
61$"https://ai.azure.com/nextgen/r/{encodedSubscriptionId},{resourceGroupName},,{Parent.Name},{Name}/home").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)
75}).ConfigureAwait(false); 79.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 (18)
KubernetesEnvironmentContext.cs (1)
27await serviceResource.ProcessResourceAsync(this, executionContext, cancellationToken).ConfigureAwait(false);
KubernetesPublishingContext.cs (13)
62await WriteKubernetesOutputAsync(model, environment).ConfigureAwait(false); 83await dockerfileBuildAnnotation.MaterializeDockerfileAsync(dockerfileContext, cancellationToken).ConfigureAwait(false); 99await WriteKubernetesTemplatesForResource(resource, serviceResource.GetTemplatedResources()).ConfigureAwait(false); 100await AppendResourceContextToHelmValuesAsync(resource, serviceResource).ConfigureAwait(false); 104await WriteKubernetesHelmChartAsync(environment).ConfigureAwait(false); 105await WriteKubernetesHelmValuesAsync().ConfigureAwait(false); 110await AddValuesToHelmSectionAsync(resource, resourceContext.Parameters, HelmExtensions.ParametersKey).ConfigureAwait(false); 120await AddValuesToHelmSectionAsync(resource, configItems, HelmExtensions.ConfigKey).ConfigureAwait(false); 121await AddValuesToHelmSectionAsync(resource, resourceContext.Secrets, HelmExtensions.SecretsKey).ConfigureAwait(false); 176await writer.WriteLineAsync(HelmExtensions.TemplateFileSeparator).ConfigureAwait(false); 177await writer.WriteAsync(yaml).ConfigureAwait(false); 202await File.WriteAllTextAsync(outputFile, valuesYaml, cancellationToken).ConfigureAwait(false); 222await File.WriteAllTextAsync(outputFile, chartYaml, cancellationToken).ConfigureAwait(false);
KubernetesResource.cs (4)
160await ProcessEnvironmentAsync(context, executionContext, cancellationToken).ConfigureAwait(false); 161await ProcessArgumentsAsync(context, executionContext, cancellationToken).ConfigureAwait(false); 299await c.Callback(context).ConfigureAwait(false); 324await c.Callback(context).ConfigureAwait(false);
Aspire.Hosting.Maui (6)
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
37}).ConfigureAwait(false);
MauiPlatformHelper.cs (1)
141await Task.CompletedTask.ConfigureAwait(false);
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
122}).ConfigureAwait(false);
Utilities\MauiEnvironmentHelper.cs (2)
82await File.WriteAllTextAsync(targetsFilePath, targetsContent, Encoding.UTF8, cancellationToken).ConfigureAwait(false); 253await File.WriteAllTextAsync(targetsFilePath, targetsContent, Encoding.UTF8, cancellationToken).ConfigureAwait(false);
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
122}).ConfigureAwait(false);
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
64await sqlConnection.OpenAsync(ct).ConfigureAwait(false); 73await 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)
87}).ConfigureAwait(false); 91.ConfigureAwait(false); 132}).ConfigureAwait(false); 135.ConfigureAwait(false);
Aspire.Hosting.OpenAI.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
81await npgsqlConnection.OpenAsync(ct).ConfigureAwait(false); 92await 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.RemoteHost (8)
Ats\CapabilityDispatcher.cs (2)
486await task.ConfigureAwait(false); 503await boxedTask.ConfigureAwait(false);
JsonRpcServer.cs (6)
57await StartNamedPipeServerAsync(stoppingToken).ConfigureAwait(false); 61await StartUnixSocketServerAsync(stoppingToken).ConfigureAwait(false); 101await pipeServer.WaitForConnectionAsync(cancellationToken).ConfigureAwait(false); 117await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 177await Task.Delay(1000, cancellationToken).ConfigureAwait(false); 228await jsonRpc.Completion.ConfigureAwait(false);
Aspire.Hosting.SqlServer (2)
SqlServerBuilderExtensions.cs (2)
80await sqlConnection.OpenAsync(ct).ConfigureAwait(false); 89await CreateDatabaseAsync(sqlConnection, sqlDatabase, @event.Services, ct).ConfigureAwait(false);
Aspire.Hosting.Testing (12)
DistributedApplicationFactory.cs (7)
74await _startedTcs.Task.WaitAsync(linkedCts.Token).ConfigureAwait(false); 523await _exitTcs.Task.WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 536await app.StopAsync().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 545await app.DisposeAsync().AsTask().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 603await asyncDisposable.DisposeAsync().AsTask().WaitAsync(appFactory._disposingCts.Token).ConfigureAwait(false); 616await innerHost.StartAsync(linkedToken.Token).ConfigureAwait(false); 630await innerHost.StopAsync(cancellationToken).ConfigureAwait(false);
DistributedApplicationTestingBuilder.cs (5)
282await _host.RunAsync(cancellationToken).ConfigureAwait(false); 289await _host.StartAsync(cancellationToken).ConfigureAwait(false); 294await _host.StopAsync(cancellationToken).ConfigureAwait(false); 314await appFactory.StartAsync(cancellationToken).ConfigureAwait(false); 319await appFactory.DisposeAsync().AsTask().WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
114}, resourceName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (6)
Helpers\JsonDocumentManifestPublisher.cs (2)
28await WriteManifestAsync(model, writer, cancellationToken).ConfigureAwait(false); 86await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false);
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Utils\LoggerNotificationExtensions.cs (1)
114}, resourceName, cancellationToken).ConfigureAwait(false);
Utils\PeriodicRestartAsyncEnumerableTests.cs (1)
65await Task.Delay(delay, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
184await task.ConfigureAwait(false); 190await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Playground.Tests (3)
tests\Aspire.Hosting.Tests\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-managed (1)
Program.cs (1)
30await Aspire.Hosting.RemoteHost.RemoteHostServer.RunAsync(args).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)
133await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 173await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 300await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 365await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 414await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
dotnet (13)
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
102await Task.WhenAll(manifests.Select(manifest => UpdateAdvertisingManifestAsync(manifest, includePreviews, offlineCache))).ConfigureAwait(false);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\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.9.0-1.26307.102\contentFiles\cs\net11.0\BuildServerConnection.cs (5)
133await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 173await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 300await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 365await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 414await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
dotnet-format (3)
Analyzers\AnalyzerFormatter.cs (2)
167await _runner.RunCodeAnalysisAsync(result, analyzers, project, formattablePaths, severity, fixableCompilerDiagnostics, logger, cancellationToken).ConfigureAwait(false); 246await _runner.RunCodeAnalysisAsync(result, analyzers, project, formattablePaths, severity, fixableCompilerDiagnostics, logger, cancellationToken).ConfigureAwait(false);
Analyzers\SolutionCodeFixApplier.cs (1)
59await codeFix.RegisterCodeFixesAsync(context).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 (31)
Program.cs (11)
277await Console.Error.WriteLineAsync($"'{path}' does not exist").ConfigureAwait(false); 378await Console.Out.WriteLineAsync($"Failed to create analyzer rules missing documentation file. Http response timed out").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:").ConfigureAwait(false); 821await Console.Error.WriteLineAsync($"Missing entry in {fileWithPath}").ConfigureAwait(false); 822await Console.Error.WriteLineAsync(line).ConfigureAwait(false); 877await Console.Error.WriteLineAsync($"'{assemblyPath}' does not exist").ConfigureAwait(false); 889await Console.Error.WriteLineAsync(ex.Message).ConfigureAwait(false); 915await Console.Error.WriteLineAsync($"Expected both '{shippedFile}' and '{unshippedFile}' to exist or not exist, but '{existingFile}' exists and '{nonExistingFile}' does not exist.").ConfigureAwait(false); 925await Console.Error.WriteLineAsync($"'{shippedFile}' exists but was not expected").ConfigureAwait(false); 954await Console.Error.WriteLineAsync(ex.Message).ConfigureAwait(false); 962await Console.Error.WriteLineAsync($"Could not find any 'AnalyzerReleases.Shipped.md' file").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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
91cancellationToken).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\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, 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 (2)
PowerShellScripts\PowerShellCommand.cs (1)
138await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
WorkflowScripts\NodeCommand.cs (1)
130await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
test\ProjectTemplates\Infrastructure\TestCommand.cs (2)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false); 103await process.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
351await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Analyzers.Local.Tests (1)
Resources\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.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.HttpLogging (1)
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
265.ConfigureAwait(false); 487.ConfigureAwait(false);
Microsoft.AspNetCore.OutputCaching (1)
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.AspNetCore.ResponseCaching (1)
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.AspNetCore.ResponseCompression (1)
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.AspNetCore.Server.Kestrel.Core (22)
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);
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: false)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\TaskToApm.cs (1)
95_task.ConfigureAwait(continueOnCapturedContext: 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.Build (3)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1319await Task.Delay(delay).ConfigureAwait(false);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
928await Task.WhenAll(tasks).ConfigureAwait(false); 1012await 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)
133await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 173await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 300await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 365await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 414await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (3)
52await RunInternalAsync(cancellationToken).ConfigureAwait(false); 113await _buildEngine.FlushEventsAsync(cancellationToken).ConfigureAwait(false); 114await _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);
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 (20)
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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
91cancellationToken).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\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, 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 (14)
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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (16)
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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (23)
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)
119await InitializeNonDelegatedConstructorAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
59await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 65await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 69await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false); 70await 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)
91cancellationToken).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\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
121await this.ReduceAsync(document, root, nodesAndTokensToReduce, reducers, options, reducedNodesMap, reducedTokensMap, cancellationToken).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)
81await _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.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)
348() => 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.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\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\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)
1159await GetProjectDifferencesAsync(Log, oldProject, newProject, projectDifferences, projectDiagnostics, 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.ProgressAdapter.cs (1)
137cancellationToken).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);
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)
273}).ConfigureAwait(false); 291documents: 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)
119await InitializeNonDelegatedConstructorAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
59await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 65await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false); 69await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false); 70await 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.ResxSourceGenerator (14)
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\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 (179)
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.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\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (2)
82await AddGlobalAliasesAsync(project, symbols, symbolToGlobalAliases, cancellationToken).ConfigureAwait(false); 159cancellationToken).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)
134await AnalyzeProjectAsync(project, cancellationToken).ConfigureAwait(false); 156await 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); 462projectId, renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations, _cancellationToken).ConfigureAwait(false); 702await AddDocumentsWithPotentialConflictsAsync(documentsFromAffectedProjects, documentIds, possibleNameConflicts).ConfigureAwait(false);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
363stringLocations, cancellationToken).ConfigureAwait(false); 368await 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\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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
91cancellationToken).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\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, 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)
533await _project.OnBatchScopeDisposedMaybeAsync(useAsync: true).ConfigureAwait(false); 629}).ConfigureAwait(false); 642await _projectSystemProjectFactory.RaiseOnDocumentsAddedMaybeAsync(useAsync, documentFileNamesAdded).ConfigureAwait(false);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
306await ApplyBatchChangeToWorkspaceMaybe_NoLockAsync(useAsync, mutation, onAfterUpdateAlways).ConfigureAwait(false); 941}, onAfterUpdateAlways).ConfigureAwait(false);
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
158await _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)
593await ScheduleTask(EventArgs.Empty, handlerSet).ConfigureAwait(false); 721}, cancellationToken, TaskCreationOptions.None, _taskSchedulerProvider.CurrentContextScheduler).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (4)
128await buildHostProcess.ConnectAsync(pipeName).ConfigureAwait(false); 140await buildHostProcess.BuildHost.ConfigureGlobalStateAsync(_knownCommandLineParserLanguages, _globalMSBuildProperties, _binaryLogPathProvider?.GetNewLogPath(), _maxNodeCount, cancellationToken).ConfigureAwait(false); 461await pipeClient.ConnectAsync(timeout: 60_000).ConfigureAwait(false); 507await BuildHost.ShutdownAsync(CancellationToken.None).ConfigureAwait(false);
Rpc\RpcClient.cs (1)
176await _stream.WriteAsync(requestJsonBytes, 0, requestJsonBytes.Length, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Build\ProjectBuildManager.cs (1)
129await 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)
109await Task.WhenAll(remainingTasks).ConfigureAwait(false); 170await _streamWriter.WriteLineAsync(responseJson).ConfigureAwait(false); 171await _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.Extensions.AI.Abstractions (11)
Contents\DataContent.cs (1)
193cancellationToken).ConfigureAwait(false);
Functions\AIFunctionFactory.cs (9)
926await ((Task)ThrowIfNullResult(result)).ConfigureAwait(true); 933await ((Task)ThrowIfNullResult(result)).ConfigureAwait(true); 971await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 983await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 992await ((Task)ThrowIfNullResult(taskObj)).ConfigureAwait(true); 1011await task.ConfigureAwait(true); 1024await task.ConfigureAwait(true); 1034await task.ConfigureAwait(true); 1069await JsonSerializer.SerializeAsync(stream, result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
src\LegacySupport\FilePolyfills\FilePolyfills.cs (1)
73await File.WriteAllBytesAsync(path, byteArray, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation (1)
Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Console (4)
Program.cs (1)
43await logger.DisplayTelemetryOptOutMessageIfNeededAsync().ConfigureAwait(false);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().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)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Quality (1)
src\Libraries\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)
84await RemoveAsync(key, cancellationToken).ConfigureAwait(false); 169await entry.WriteAsync(entryFilePath, cancellationToken: cancellationToken).ConfigureAwait(false); 209await entry.WriteAsync(entryFilePath, cancellationToken: cancellationToken).ConfigureAwait(false); 212await File.WriteAllBytesAsync(contentsFilePath, value, cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResultStore.cs (1)
105cancellationToken).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);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
56await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Templates.Tests (2)
test\ProjectTemplates\Infrastructure\TestCommand.cs (2)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false); 103await process.WaitForExitAsync(timeoutCts.Token).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.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 (1)
MarkItDownReader.cs (1)
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 (2)
Logging\FakeLogCollector.LogEnumeration.cs (1)
198await _mainCts.CancelAsync().ConfigureAwait(false);
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 (12)
Internal\Host.cs (12)
86await _hostLifetime.WaitForStartAsync(cancellationToken).ConfigureAwait(false); 116(service, token) => service.StartingAsync(token)).ConfigureAwait(false); 126await service.StartAsync(token).ConfigureAwait(false); 137}).ConfigureAwait(false); 146(service, token) => service.StartedAsync(token)).ConfigureAwait(false); 192await backgroundTask.ConfigureAwait(false); 263(service, token) => service.StoppingAsync(token)).ConfigureAwait(false); 272service.StopAsync(token)).ConfigureAwait(false); 278service.StoppedAsync(token)).ConfigureAwait(false); 289await _hostLifetime.StopAsync(cancellationToken).ConfigureAwait(false); 400await groupedTasks.ConfigureAwait(false); 421await 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)
216var act = async () => await host.StartAsync().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); 2631await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false); 2717await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false); 2806await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false); 2832await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false); 2833await UpdateSecurityStampInternal(user).ConfigureAwait(false); 2985await UpdateNormalizedUserNameAsync(user).ConfigureAwait(false); 2986await 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.ServiceDiscovery (9)
Http\HttpServiceEndpointResolver.cs (4)
150await Task.WhenAll(cleanupTasks).ConfigureAwait(false); 225await DisposeAsyncCore().ConfigureAwait(false); 242await DisposeAsyncCore().ConfigureAwait(false); 246await _onDisposed.Task.ConfigureAwait(false);
ServiceEndpointResolver.cs (4)
159await Task.WhenAll(cleanupTasks).ConfigureAwait(false); 217await DisposeAsyncCore().ConfigureAwait(false); 234await DisposeAsyncCore().ConfigureAwait(false); 238await _onDisposed.Task.ConfigureAwait(false);
ServiceEndpointWatcher.cs (1)
85await RefreshAsync(force: false).WaitAsync(cancellationToken).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.Gen.BuildMetadata.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
487await fixer.RegisterCodeFixesAsync(context).ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\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.McpServer.ProjectTemplates.Tests (2)
test\ProjectTemplates\Infrastructure\TestCommand.cs (2)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false); 103await process.WaitForExitAsync(timeoutCts.Token).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.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 (54)
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);
ContainerBuilder.cs (2)
234await containerRegistry.LoadAsync(builtImage, sourceImageReference, destinationImageReference, cancellationToken).ConfigureAwait(false); 261cancellationToken)).ConfigureAwait(false);
ImagePublisher.cs (6)
31destinationImageReference.LocalRegistry!.LoadAsync).ConfigureAwait(false); 41Strings.ContainerBuilder_ImageUploadedToRegistry).ConfigureAwait(false); 70destinationImageReference.LocalRegistry!.LoadAsync).ConfigureAwait(false); 80Strings.ImageIndexUploadedToRegistry).ConfigureAwait(false); 107await loadFunc(image, sourceImageReference, destinationImageReference, cancellationToken).ConfigureAwait(false); 149cancellationToken).ConfigureAwait(false);
LocalDaemons\ArchiveFileRegistry.cs (1)
48await writeStreamFunc(image, sourceReference, destinationReference, fileStream, cancellationToken).ConfigureAwait(false);
LocalDaemons\DockerCli.cs (23)
111.ConfigureAwait(false); 117await loadProcess.WaitForExitAsync(cancellationToken).ConfigureAwait(false); 408.ConfigureAwait(false); 412.ConfigureAwait(false); 416.ConfigureAwait(false); 439await writer.WriteEntryAsync(localPath, layerTarballPath, cancellationToken).ConfigureAwait(false); 465await writer.WriteEntryAsync(configEntry, cancellationToken).ConfigureAwait(false); 497await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 513.ConfigureAwait(false); 516.ConfigureAwait(false); 519.ConfigureAwait(false); 534await writer.WriteEntryAsync(layoutEntry, cancellationToken).ConfigureAwait(false); 552await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false); 577await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 588.ConfigureAwait(false); 591.ConfigureAwait(false); 594.ConfigureAwait(false); 612.ConfigureAwait(false); 616.ConfigureAwait(false); 619.ConfigureAwait(false); 641await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 660await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false); 785await process.WaitForExitAsync(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)
50await putResponse.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false); 57await response.LogHttpResponseAsync(_logger, cancellationToken).ConfigureAwait(false);
Registry\Registry.cs (11)
432await responseStream.CopyToAsync(fs, cancellationToken).ConfigureAwait(false); 449await Task.Delay(_retryDelayProvider(), cancellationToken).ConfigureAwait(false); 465await UploadBlobAsync(repository, digest, contents, cancellationToken).ConfigureAwait(false); 554await _registryAPI.Blob.Upload.CompleteAsync(finalChunkUri.UploadUri, digest, cancellationToken).ConfigureAwait(false); 569await _registryAPI.Manifest.PutAsync(destinationImageReference.Repository, tag, multiArchImage.ImageIndex, multiArchImage.ImageIndexMediaType, cancellationToken).ConfigureAwait(false); 604await destinationRegistry.PushLayerAsync(Layer.FromDescriptor(descriptor), destination.Repository, cancellationToken).ConfigureAwait(false); 616await Task.WhenAll(builtImage.LayerDescriptors.Select(descriptor => uploadLayerFunc(descriptor))).ConfigureAwait(false); 622await uploadLayerFunc(descriptor).ConfigureAwait(false); 631await UploadBlobAsync(destination.Repository, configDigest, stringStream, cancellationToken).ConfigureAwait(false); 644await _registryAPI.Manifest.PutAsync(destination.Repository, tag, builtImage.Manifest, builtImage.ManifestMediaType, cancellationToken).ConfigureAwait(false); 651await _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)
250.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)
266cancellationToken).ConfigureAwait(false); 336cancellationToken).ConfigureAwait(false); 361await _templatePackageDisplay.DisplayInstalledTemplatePackagesAsync(_templatePackageManager, args, cancellationToken).ConfigureAwait(false); 385await _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.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
129await AcquireFileFromCloudAsync(preferredMetadataLocation, cancellationToken).ConfigureAwait(false);
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketClient.cs (1)
111.ConfigureAwait(false);
SocketServer.cs (1)
109Task.Run(() => _tcpClient.MessageLoopAsync(_channel, error => StopOnError(error), _cancellation.Token)).ConfigureAwait(false);
Microsoft.TestPlatform.Utilities (1)
CodeCoverageDataAttachmentsHandler.cs (1)
133await task.ConfigureAwait(false);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (50)
TestSession.cs (14)
393.ConfigureAwait(false); 409discoveryEventsHandler).ConfigureAwait(false); 423testRunEventsHandler).ConfigureAwait(false); 439new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 457telemetryEventsHandler).ConfigureAwait(false); 471testRunEventsHandler).ConfigureAwait(false); 487new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 505telemetryEventsHandler).ConfigureAwait(false); 521customTestHostLauncher).ConfigureAwait(false); 539customTestHostLauncher).ConfigureAwait(false); 559customTestHostLauncher).ConfigureAwait(false); 575customTestHostLauncher).ConfigureAwait(false); 593customTestHostLauncher).ConfigureAwait(false); 613customTestHostLauncher).ConfigureAwait(false);
VsTestConsoleRequestSender.cs (6)
137_communicationManager.AcceptClientAsync(), timeoutSource.Token).ConfigureAwait(false); 199eventHandler).ConfigureAwait(false); 249null).ConfigureAwait(false); 299null).ConfigureAwait(false); 353customHostLauncher).ConfigureAwait(false); 407customHostLauncher).ConfigureAwait(false);
VsTestConsoleWrapper.cs (30)
745await EnsureInitializedAsync().ConfigureAwait(false); 783await EnsureInitializedAsync().ConfigureAwait(false); 793await EnsureInitializedAsync().ConfigureAwait(false); 809.ConfigureAwait(false); 824discoveryEventsHandler).ConfigureAwait(false); 837await EnsureInitializedAsync().ConfigureAwait(false); 843discoveryEventsHandler).ConfigureAwait(false); 856testRunEventsHandler).ConfigureAwait(false); 871testRunEventsHandler).ConfigureAwait(false); 888new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 907await EnsureInitializedAsync().ConfigureAwait(false); 914telemetryEventsHandler).ConfigureAwait(false); 927testRunEventsHandler).ConfigureAwait(false); 942testRunEventsHandler).ConfigureAwait(false); 959new NoOpTelemetryEventsHandler()).ConfigureAwait(false); 978await EnsureInitializedAsync().ConfigureAwait(false); 985telemetryEventsHandler).ConfigureAwait(false); 1000customTestHostLauncher).ConfigureAwait(false); 1017customTestHostLauncher).ConfigureAwait(false); 1036customTestHostLauncher).ConfigureAwait(false); 1056await EnsureInitializedAsync().ConfigureAwait(false); 1064customTestHostLauncher).ConfigureAwait(false); 1079customTestHostLauncher).ConfigureAwait(false); 1096customTestHostLauncher).ConfigureAwait(false); 1115customTestHostLauncher).ConfigureAwait(false); 1135await EnsureInitializedAsync().ConfigureAwait(false); 1143customTestHostLauncher).ConfigureAwait(false); 1158await EnsureInitializedAsync().ConfigureAwait(false); 1165cancellationToken).ConfigureAwait(false); 1207await 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 (20)
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\SpecializedTasks.cs (1)
90await Task.WhenAll((IEnumerable<Task>)tasks).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
91cancellationToken).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\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
111document, state, editor, warningAnnotation, 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);
Shared (1)
ServerSentEvents\Helpers.cs (1)
102await stream.WriteAsync(sharedBuffer, 0, buffer.Length, cancellationToken).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)
Program.cs (1)
181await 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)
1549await WaitUntilOutputEOF(cancellationToken).ConfigureAwait(false); 1572await tcs.Task.ConfigureAwait(false); 1577await WaitUntilOutputEOF(cancellationToken).ConfigureAwait(false); 1588await _output.EOF.WaitAsync(cancellationToken).ConfigureAwait(false); 1593await _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 (21)
System\Formats\Tar\TarEntry.cs (1)
610await 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\Formats\Tar\TarHeader.Read.cs (1)
54await header.ProcessDataBlockAsync(archiveStream, copyData, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarHeader.Write.cs (12)
64await WriteDataAsync(archiveStream, _dataStream, cancellationToken).ConfigureAwait(false); 147await _dataStream.CopyToAsync(destinationStream, cancellationToken).ConfigureAwait(false); // The data gets copied from the current position 334await WriteWithUnseekableDataStreamAsync(TarEntryFormat.Pax, tempStream, buffer, shouldAdvanceToEnd: false, cancellationToken).ConfigureAwait(false); 342await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false); 346await tempStream.CopyToAsync(archiveStream, cancellationToken).ConfigureAwait(false); 354await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false); 358await WriteWithSeekableDataStreamAsync(TarEntryFormat.Pax, archiveStream, buffer, cancellationToken).ConfigureAwait(false); 416await longLinkHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.Gnu, archiveStream, buffer, cancellationToken).ConfigureAwait(false); 425await longPathHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.Gnu, archiveStream, buffer, cancellationToken).ConfigureAwait(false); 432await WriteWithUnseekableDataStreamAsync(TarEntryFormat.Gnu, archiveStream, buffer, shouldAdvanceToEnd: true, cancellationToken).ConfigureAwait(false); 436await WriteWithSeekableDataStreamAsync(TarEntryFormat.Gnu, archiveStream, buffer, cancellationToken).ConfigureAwait(false); 848await dataStream.CopyToAsync(archiveStream, cancellationToken).ConfigureAwait(false); // The data gets copied from the current position
System\Formats\Tar\TarWriter.cs (2)
213await WriteEntryAsync(entry, cancellationToken).ConfigureAwait(false); 373await task.ConfigureAwait(false);
System.IO.Compression (28)
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\ZipArchive.Async.cs (14)
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); 385await entry.LoadLocalHeaderExtraFieldIfNeededAsync(cancellationToken).ConfigureAwait(false); 388await entry.LoadCompressedBytesIfNeededAsync(cancellationToken).ConfigureAwait(false); 406await entry.WriteAndFinishLocalEntryAsync(forceWriteLocalEntry, cancellationToken).ConfigureAwait(false); 419await entry.WriteCentralDirectoryFileHeaderAsync(centralDirectoryEntryRequiresUpdate, cancellationToken).ConfigureAwait(false); 462await ZipEndOfCentralDirectoryBlock.WriteBlockAsync(_archiveStream, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory, _archiveComment, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (9)
129await decompressor.CopyToAsync(_storedUncompressedData, cancellationToken).ConfigureAwait(false); 163await CloseStreamsAsync().ConfigureAwait(false); 164await WriteLocalFileHeaderAndDataIfNeededAsync(forceWrite, cancellationToken).ConfigureAwait(false); 165await UnloadStreamsAsync().ConfigureAwait(false); 188await ZipGenericExtraField.WriteAllBlocksAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 250await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: false, cancellationToken).ConfigureAwait(false); 264await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false); 338await ZipGenericExtraField.WriteAllBlocksAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 373await _storedUncompressedData.CopyToAsync(entryWriter, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.cs (1)
1747await _entry.WriteCrcAndSizesInLocalHeaderAsync(_usedZip64inLH, cancellationToken: default).ConfigureAwait(false);
System\IO\Compression\ZipBlocks.Async.cs (1)
32await 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 (8)
System\IO\Compression\ZipFile.Create.Async.cs (2)
448await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken).ConfigureAwait(false); 462await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.Async.cs (2)
204await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false); 362await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (1)
95await fs.CopyToAsync(es, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (1)
82await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
97await es.CopyToAsync(fs, cancellationToken).ConfigureAwait(false); 130await source.ExtractToFileAsync(fileDestinationPath, overwrite: overwrite, cancellationToken).ConfigureAwait(false);
System.IO.Pipelines (3)
System\IO\Pipelines\StreamPipeReader.cs (2)
367await InnerStream.CopyToAsync(destination, tokenSource.Token).ConfigureAwait(false); 428await InnerStream.CopyToAsync(destination, tokenSource.Token).ConfigureAwait(false);
System\IO\Pipelines\StreamPipeWriter.cs (1)
343await InnerStream.FlushAsync(localToken).ConfigureAwait(false);
System.Memory.Data (1)
System\BinaryData.cs (1)
299await stream.CopyToAsync(memoryStream, bufferSize, cancellationToken).ConfigureAwait(false);
System.Net.Http (37)
System\Net\Http\HttpClient.cs (3)
211await responseStream.CopyToAsync(buffer, cts.Token).ConfigureAwait(false); 289await responseStream.CopyToAsync(buffer, cts.Token).ConfigureAwait(false); 551await 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)
211await HandleHttp11Downgrade(queueItem.Request, stream, transportContext, activity, remoteEndPoint, 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)
1237await FlushOutgoingBytesAsync().ConfigureAwait(false); 1270await FlushOutgoingBytesAsync().ConfigureAwait(false); 1698}, cancellationToken).ConfigureAwait(false); 1751}, cancellationToken).ConfigureAwait(false); 2045await requestBodyTask.ConfigureAwait(false); 2065await 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)
169await _sendSettingsTask!.ConfigureAwait(false); 649await ProcessServerControlStreamAsync(stream, bufferCopy).ConfigureAwait(false); 660await stream.CopyToAsync(Stream.Null).ConfigureAwait(false); 672await 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)
767await sendTask.ConfigureAwait(false); 881await sendRequestContentTask.ConfigureAwait(false); 978await request.Content!.CopyToAsync(stream, _transportContext, cancellationToken).ConfigureAwait(false); 986await stream.FinishAsync(async).ConfigureAwait(false); 1906await _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)
123await 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)
158await 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)
516await EnsureConnection<TIOAdapter>(cancellationToken).ConfigureAwait(false); 525await 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)
84await GetConnectionAsync<AsyncReadWriteAdapter>(host, port, cancellationToken).ConfigureAwait(false); 117await MailCommand.SendAsync<TIOAdapter>(_connection!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false); 141await 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.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)
957await 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)
744SendBlobAsync<TIOAdapter>(message: null, cancellationToken)).ConfigureAwait(false); // client should send the first blob 789await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message, exception, cancellationToken).ConfigureAwait(false); 813await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 850await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message!, exception, cancellationToken).ConfigureAwait(false); 860await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 863await ReceiveBlobAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 922await SendBlobAsync<TIOAdapter>(message, cancellationToken).ConfigureAwait(false); 932await _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); 314await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 358await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 737await waitTask.ConfigureAwait(false); 928await ReplyOnReAuthenticationAsync<TIOAdapter>(extraBuffer, 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); 791await _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 (82)
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)
1388await writer.WriteLineAsync(line.AsMemory(), cancellationToken).ConfigureAwait(false); 1391await 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); 397await semaphoreLockTask.ConfigureAwait(false); 662await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 679await semaphoreLockTask.ConfigureAwait(false); 797await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 845await EnsureAsyncActiveSemaphoreInitialized().WaitAsync(cancellationToken).ConfigureAwait(false); 866await _strategy.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
748await writeTask.ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (8)
260await FlushAsync().ConfigureAwait(false); 677await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false); 688await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false); 697await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(false); 785await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false); 802await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false); 811await FlushAsyncInternal(flushStream: true, flushEncoder: false, cancellationToken).ConfigureAwait(false); 1003await _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); 174Task.CompletedTask.ConfigureAwait(_value._continueOnCapturedContext).GetAwaiter().OnCompleted(continuation); 195Task.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)
868await ReadContentFromAsync(r, cancellationToken).ConfigureAwait(false); 1339await tWrite.ConfigureAwait(false); 1347await 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); 950await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSignature.cs (1)
628await 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 (3)
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)
153await _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));
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)
133await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 173await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 300await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 365await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 414await 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)
133await WaitForServerProcessExitAsync(pipeName, shutdownBuildResponse.ServerProcessId, cancellationToken).ConfigureAwait(false); 173await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false); 300await request.WriteAsync(pipeStream, cancellationToken).ConfigureAwait(false); 365await Task.Delay(millisecondsDelay: 100, cancellationToken).ConfigureAwait(false); 414await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
vstest.console (12)
InProcessVsTestConsoleWrapper.cs (12)
872.ConfigureAwait(false); 888.ConfigureAwait(false); 925.ConfigureAwait(false); 971.ConfigureAwait(false); 1000.ConfigureAwait(false); 1016.ConfigureAwait(false); 1053.ConfigureAwait(false); 1069.ConfigureAwait(false); 1108.ConfigureAwait(false); 1126.ConfigureAwait(false); 1167.ConfigureAwait(false); 1185.ConfigureAwait(false);
vstest.console.arm64 (12)
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (12)
872.ConfigureAwait(false); 888.ConfigureAwait(false); 925.ConfigureAwait(false); 971.ConfigureAwait(false); 1000.ConfigureAwait(false); 1016.ConfigureAwait(false); 1053.ConfigureAwait(false); 1069.ConfigureAwait(false); 1108.ConfigureAwait(false); 1126.ConfigureAwait(false); 1167.ConfigureAwait(false); 1185.ConfigureAwait(false);