16 references to Run
Aspire.Hosting (1)
Backchannel\BackchannelLoggerProvider.cs (1)
45_backgroundChannelRegistrationTask = Task.Run(
dotnet-svcutil-lib (1)
Shared\Utilities\AsyncHelper.cs (1)
26var actionTask = Task.Run(action, cancellationToken);
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
1105var task = Task.Run( 1530? Task.Run(() => ExecuteSyntaxTreeActions(analysisScope, cancellationToken), cancellationToken) 1535? Task.Run(() => ExecuteAdditionalFileActions(analysisScope, cancellationToken), cancellationToken)
Microsoft.CodeAnalysis.CSharp (3)
Compiler\ClsComplianceChecker.cs (1)
214_compilerTasks.Push(Task.Run(UICultureUtilities.WithCurrentUICulture(() =>
Compiler\MethodCompiler.cs (2)
396return Task.Run(UICultureUtilities.WithCurrentUICulture(() => 442return Task.Run(UICultureUtilities.WithCurrentUICulture(() =>
Microsoft.CodeAnalysis.Features (1)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
43var _ = Task.Run(
Microsoft.CodeAnalysis.LanguageServer (2)
Testing\TestDiscoverer.cs (1)
60var discoveryTask = Task.Run(() => vsTestConsoleWrapper.DiscoverTests([projectOutputPath], discoverySettings: runSettings, discoveryHandler), cancellationToken);
Testing\TestRunner.cs (1)
46var runTask = Task.Run(() => RunTests(testCases, progress, vsTestConsoleWrapper, handler, attachDebugger, runSettings, clientLanguageServerManager), cancellationToken);
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
129await Task.Run(Stop, cancellationToken).ConfigureAwait(false);
Microsoft.Maui.Resizetizer (1)
AsyncTaskExtensions.cs (1)
41 Task.Run(body, asyncTask.CancellationToken);
Microsoft.VisualStudio.LanguageServices (1)
LanguageService\AbstractLanguageService`2.cs (1)
106Task.Run(() =>
System.Windows.Forms.Tests (2)
System\Windows\Forms\FontCacheTests.cs (1)
28Task.Run(() =>
System\Windows\Forms\ScreenDcCacheTests.cs (1)
19Task.Run(() =>