65 references to Run
aspire (4)
DotNet\DotNetCliRunner.cs (2)
509var pendingStdoutStreamForwarder = Task.Run(async () => { 518var pendingStderrStreamForwarder = Task.Run(async () => {
NuGet\NuGetPackagePrefetcher.cs (2)
26_ = Task.Run(async () => 51_ = Task.Run(async () =>
Aspire.Dashboard (6)
Model\TraceLinkHelpers.cs (1)
66var waitForTraceTask = Task.Run(async () =>
ServiceClient\DashboardClient.cs (5)
244_connection = Task.Run(() => ConnectAndWatchAsync(_clientCancellationToken), _clientCancellationToken); 254Task.Run(async () => 259Task.Run(async () => 446_ = Task.Run(async () => 669var readTask = Task.Run(async () =>
Aspire.Hosting (18)
Dashboard\DashboardService.cs (1)
67_ = Task.Run(async () =>
Dashboard\DashboardServiceData.cs (1)
38Task.Run(async () =>
Dcp\DcpExecutor.cs (3)
587var task = Task.Run(async () => 1187tasks.Add(Task.Run(() => CreateResourceExecutablesAsyncCore(group.Key, group, cancellationToken), cancellationToken)); 1467tasks.Add(Task.Run(() => CreateContainerAsyncCore(cr, cancellationToken), cancellationToken));
Dcp\DcpHost.cs (1)
429_ = Task.Run(async () =>
Dcp\ResourceLogSource.cs (4)
40var startupStdoutStreamTask = Task.Run(() => StreamLogsAsync(startupStdoutStream, isError: false), cancellationToken); 43var startupStderrStreamTask = Task.Run(() => StreamLogsAsync(startupStderrStream, isError: false), cancellationToken); 49var stdoutStreamTask = Task.Run(() => StreamLogsAsync(stdoutStream, isError: false), cancellationToken); 52var stderrStreamTask = Task.Run(() => StreamLogsAsync(stderrStream, isError: true), cancellationToken);
Devcontainers\DevcontainerSettingsWriter.cs (1)
46_ = Task.Run(async () =>
Eventing\DistributedApplicationEventing.cs (2)
40_ = Task.Run(async () => 56_ = Task.Run(async () =>
Exec\ExecResourceManager.cs (2)
95_ = Task.Run(async () => 102_ = Task.Run(async () =>
Health\ResourceHealthCheckService.cs (2)
54_ = Task.Run(async () => 245_ = Task.Run(async () =>
ResourceBuilderExtensions.cs (1)
1897_ = Task.Run(async () =>
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
160_ = Task.Run(() => ProvisionAzureResources(
Aspire.Hosting.Azure.AIFoundry (2)
AzureAIFoundryExtensions.cs (2)
199=> Task.Run(async () => 261_ = Task.Run(async () =>
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
84_ = Task.Run(() => WatchNotifications(app, resourceName, predicate, tcs, watchCts), watchCts.Token);
Aspire.Hosting.Tests (3)
Utils\LoggerNotificationExtensions.cs (1)
84_ = Task.Run(() => WatchNotifications(app, resourceName, predicate, tcs, watchCts), watchCts.Token);
WithHttpCommandTests.cs (2)
382var watchTask = Task.Run(async () => 452var watchTask = Task.Run(async () =>
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
84_ = Task.Run(() => WatchNotifications(app, resourceName, predicate, tcs, watchCts), watchCts.Token);
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
CustomResources.AppHost (1)
TestResource.cs (1)
43Task.Run(async () =>
HealthChecksSandbox.AppHost (1)
Program.cs (1)
69Task.Run(
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
407_lazyInitializeTask = Task.Run(async () =>
Microsoft.CodeAnalysis.Features (2)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
79var task = Task.Run(taskCreator, cancellationToken);
NavigateTo\INavigateToSearcherHost.cs (1)
105s_remoteHostHydrateTask = Task.Run(async () =>
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (1)
378var currentWorkTask = WrapStartRequestTaskAsync(Task.Run(() => work.StartRequestAsync<TRequest, TResponse>(deserializedRequest, context, handler, metadata.Language, cancellationToken), cancellationToken), rethrowExceptions: false);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\SolutionAssetCache.cs (1)
64Task.Run(CleanAssetsAsync, CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
222tasks.Add(Task.Run(
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
RequestExecutionQueue.cs (1)
378var currentWorkTask = WrapStartRequestTaskAsync(Task.Run(() => work.StartRequestAsync<TRequest, TResponse>(deserializedRequest, context, handler, metadata.Language, cancellationToken), cancellationToken), rethrowExceptions: false);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
49_ = Task.Run(() => OpenTcpAsync(cancellationToken), cancellationToken);
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
46_executeTask = Task.Run(() => ExecuteAsync(_stoppingCts.Token), _stoppingCts.Token);
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpResponseBodyReader.cs (1)
205=> Task.Run(() => WriteStreamToPipeImplAsync(stream, writer, cancellationToken), CancellationToken.None);
Microsoft.VisualStudio.IntegrationTest.Setup (1)
AsyncCompletionTracker.cs (1)
54_ = Task.Run(async () =>
Microsoft.VisualStudio.LanguageServices (3)
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
66System.Threading.Tasks.Task.Run(async () =>
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
112Task.Run(() => UpdateSourceInBackgroundAsync(
ValueTracking\ValueTrackedTreeItemViewModel.cs (1)
145Task.Run(async () =>
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSource.cs (1)
152Task.Run(
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (1)
76var task = Task.Run(async () =>
Nats.Backend (1)
Program.cs (1)
27_subscription = Task.Run(async () =>
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
RunTests (1)
ProcessRunner.cs (1)
112Task.Run(async () =>
Stress.ApiService (1)
Program.cs (1)
194_ = Task.Run(async () =>
Stress.AppHost (1)
TestResource.cs (1)
61Task.Run(async () =>
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5592return Run(function, default);
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
397await Task.Run(() => pipeStream.ConnectAsync(timeoutMs, cancellationToken), cancellationToken).ConfigureAwait(false);