165 references to Run
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\LogTests.cs (1)
586task = Task.Run(() =>
Client.ChannelLayer.IntegrationTests (2)
DuplexChannelWithSynchronizationContext.cs (2)
148bool success = Task.Run(() => 213bool success = Task.Run(() =>
Client.ClientBase.IntegrationTests (1)
DuplexClientBaseTests.4.1.0.cs (1)
82Task.Run(() => proxy.Ping(guid));
Client.TypedClient.IntegrationTests (6)
TypedProxyTests.4.0.0.cs (4)
68bool success = Task.Run(() => 102bool success = Task.Run(() => 156bool success = Task.Run(() => 188bool success = Task.Run(() =>
TypedProxyTests.4.1.0.cs (2)
22bool success = Task.Run(() => 36bool success = Task.Run(() =>
ClientSample (1)
Tcp\SocketAwaitable.cs (1)
53Task.Run(continuation);
Contract.Service.IntegrationTests (8)
ServiceContractTests.4.0.0.cs (4)
332bool success = Task.Run(() => 385bool success = Task.Run(() => 436bool success = Task.Run(() => 486bool success = Task.Run(() =>
ServiceContractTests.4.1.0.cs (4)
206bool success = Task.Run(() => 220bool success = Task.Run(() => 610bool success = Task.Run(() => 624bool success = Task.Run(() =>
dotnet-svcutil-lib (6)
DebugLogger.cs (5)
65return Task.Run(() => LogMessage(message, LogTag.LogMessage, logToUI)); 70return Task.Run(() => LogMessage(errorMessage, LogTag.Error, logToUI)); 75return Task.Run(() => LogMessage(warningMessage, LogTag.Warning, logToUI)); 135return Task.Run(() => LogMessage(message.Message, message.Level)); 140return Task.Run(() => LogMessage(data, level));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
291Task.Run(continuation);
Extensibility.WebSockets.IntegrationTests (3)
WebSocketTests.4.1.0.cs (3)
724Task.Run(() => duplexProxy.Ping(guid)); 764Task.Run(() => duplexProxy.Ping(guid)); 807Task.Run(() => proxy.Ping(guid));
InMemory.FunctionalTests (3)
Http2\Http2TestBase.cs (1)
179Task.Run(() =>
ResponseTests.cs (2)
44context.Response.OnCompleted(() => Task.Run(() => 446httpContext.Response.OnCompleted(() => Task.Run(() =>
Microsoft.AspNetCore.Components.Tests (11)
Rendering\RendererSynchronizationContextTest.cs (11)
76var task = Task.Run(() => 120var task = Task.Run(() => 175var task = Task.Run(() => 217var task1 = Task.Run(() => context.Send((_) => 225var task2 = Task.Run(() => 336var task1 = Task.Run(() => 350var task2 = Task.Run(() => 433var task1 = Task.Run(() => 522var task1 = Task.Run(() => 614var task1 = Task.Run(() => 704var task1 = Task.Run(() =>
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostTests.cs (4)
207return Task.Run(() => 246return Task.Run(() => 282return Task.Run(() => 357Task.Run(() => lifetime.StopApplication());
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\AwaitableThreadPool.cs (1)
29Task.Run(continuation);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\ExecutorFactoryTest.cs (2)
244await Task.Run(() => 289await Task.Run(() =>
Microsoft.AspNetCore.Routing (1)
Matching\ILEmitTrieJumpTable.cs (1)
74await Task.Run(InitializeILDelegate);
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
116var shutdownTask = Task.Run(_applicationLifetime.StopApplication);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\StreamCloseAwaitable.cs (1)
32Task.Run(continuation);
Microsoft.AspNetCore.SignalR.Client.Core (2)
src\SignalR\common\Shared\AwaitableThreadPool.cs (1)
29Task.Run(continuation);
src\SignalR\common\Shared\TimerAwaitable.cs (1)
85Task.Run(continuation);
Microsoft.Build (2)
BackEnd\Node\OutOfProcServerNode.cs (1)
340Task.Run(() =>
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
223Task.Run(() => AppDomain.Unload(appDomain));
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildServer_Tests.cs (1)
202t = Task.Run(() =>
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
89DeleteLeftoverDirectoriesTask = Task.Run(DeleteLeftoverDirectories);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
98tasks[j] = Task.Run(() =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests.cs (1)
4922var tasks = Enumerable.Range(0, numTasks).Select(t => Task.Run(() =>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
589tasks[j] = Task.Run(() =>
Microsoft.CodeAnalysis.EditorFeatures (1)
Copilot\CopilotWpfTextCreationListener.cs (1)
69Task.Run(() =>
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.cs (2)
117_ = Task.Run(() => SetOutputs(TextWriter.Null, TextWriter.Null)); 175Task.Run(() =>
Microsoft.CodeAnalysis.Workspaces (2)
Log\RoslynEventSource.cs (1)
88_ = Task.Run(SendFunctionDefinitions);
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
89DeleteLeftoverDirectoriesTask = Task.Run(DeleteLeftoverDirectories);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\AsyncLazyTests.cs (1)
177Task.Run(() =>
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\GeneralUtils.cs (1)
257return System.Threading.Tasks.Task.Run(() => process.WaitForExit());
Microsoft.DotNet.Build.Tasks.Packaging (2)
NuGetUtility.cs (2)
122public Task LogAsync(LogLevel level, string data) => Task.Run(() => Log(level, data)); 124public Task LogAsync(ILogMessage message) => Task.Run(() => Log(message));
Microsoft.DotNet.XUnitAssert.Tests (11)
EventAssertsTests.cs (10)
382 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 399 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 463 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 480 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 497 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 514 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 573 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 591 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 638 () => Task.Run(() => obj.RaiseWithArgs(eventObj)) 656 () => Task.Run(() => obj.RaiseWithArgs(eventObj))
Sdk\ArgumentFormatterTests.cs (1)
186 var task = Task.Run(() => { });
Microsoft.Extensions.AsyncState.Tests (1)
AsyncStateTests.cs (1)
152var task = Task.Run(() =>
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
273Task.Run(_deleteExpiredCachedItemsDelegate);
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
230_ = Task.Run(ReloadLoop);
Microsoft.Extensions.ObjectPool.Microbenchmark (2)
DrainRefillMultiTheaded.cs (1)
45_tasks[i] = Task.Run(() =>
GetReturnMultiThreaded.cs (1)
37_tasks[i] = Task.Run(() =>
Microsoft.ML.FastTree (4)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (3)
350var smallSplitInit = Task.Run(() => 411var smallSplitInit = Task.Run(() => SmallerChildSplitCandidates.Initialize(lteChild, partitioning, targets, GetTargetWeights(), FilterZeros)); 424var smallSplitInit = Task.Run(() => SmallerChildSplitCandidates.Initialize(gtChild, partitioning, targets, GetTargetWeights(), FilterZeros));
Utils\ThreadTaskManager.cs (1)
54var task = Task.Run(_actions[i]);
Microsoft.ML.Maml (1)
MAML.cs (1)
65var progressTrackerTask = Task.Run(() => TrackProgress(env, progressCancel.Token));
Microsoft.ML.Samples (3)
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
331var task = Task.Run(() =>
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
287var task = Task.Run(() =>
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
308var task = Task.Run(() =>
Microsoft.ML.Samples.GPU (3)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
331var task = Task.Run(() =>
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
287var task = Task.Run(() =>
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
308var task = Task.Run(() =>
Microsoft.VisualStudio.LanguageServices (1)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (1)
126Task.Run(() =>
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
1266System.Threading.Tasks.Task.Run(() =>
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
237return Task.Run(() =>
Security.TransportSecurity.IntegrationTests (3)
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
259Task.Run(() => serviceProxy.Ping(guid));
Tcp\StreamingTests.4.1.0.cs (2)
389bool success = Task.Run(() => 408bool success = Task.Run(() =>
System.Net.HttpListener (1)
System\Net\Managed\HttpStreamAsyncResult.cs (1)
75Task.Run(() => _callback(this));
System.Net.WebClient (2)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (2)
113Task.Run(c); 131Task.Run(continuation);
System.Text.RegularExpressions (6)
System\Threading\StackHelper.cs (6)
39Task.Run(() => action(arg1)) 50Task.Run(() => action(arg1, arg2)) 63Task.Run(() => action(arg1, arg2, arg3)) 78Task.Run(() => action(arg1, arg2, arg3, arg4)) 95Task.Run(() => action(arg1, arg2, arg3, arg4, arg5)) 114Task.Run(() => action(arg1, arg2, arg3, arg4, arg5, arg6))
System.Text.RegularExpressions.Generator (6)
src\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (6)
39Task.Run(() => action(arg1)) 50Task.Run(() => action(arg1, arg2)) 63Task.Run(() => action(arg1, arg2, arg3)) 78Task.Run(() => action(arg1, arg2, arg3, arg4)) 95Task.Run(() => action(arg1, arg2, arg3, arg4, arg5)) 114Task.Run(() => action(arg1, arg2, arg3, arg4, arg5, arg6))
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TimerAwaitable.cs (1)
98Task.Run(continuation);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
597Task.Run(() =>
System.Windows.Forms.Tests (43)
System\Windows\Forms\ControlTests.Methods.cs (3)
3822await Task.Run(() => 4076await Task.Run(() => 4093await Task.Run(() =>
System\Windows\Forms\ControlTests.Properties.cs (2)
6564await Task.Run(() => 6577await Task.Run(() =>
System\Windows\Forms\HtmlDocumentTests.cs (2)
1259await Task.Run(() => control.Navigate(file.Path)); 2380await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\HtmlElementTests.cs (1)
3326await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\HtmlWindowTests.cs (1)
100await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\WebBrowserTests.cs (34)
387await Task.Run(() => control.Navigate(file1.Path)); 422await Task.Run(() => control.Navigate(file1.Path)); 466await Task.Run(() => control.Navigate(file.Path)); 535await Task.Run(() => control.Navigate(file.Path)); 652await Task.Run(() => control.Navigate(file.Path)); 891await Task.Run(() => control.Navigate(file.Path)); 957await Task.Run(() => control.Navigate(file.Path)); 1024await Task.Run(() => control.Navigate(file.Path)); 1133await Task.Run(() => control.Navigate(file.Path)); 1620await Task.Run(() => control.Navigate(file.Path)); 1871await Task.Run(() => control.Navigate(file.Path)); 1937await Task.Run(() => control.Navigate(file.Path)); 2911await Task.Run(() => control.Navigate(file1.Path)); 2921await Task.Run(() => control.Navigate(file2.Path)); 2931await Task.Run(() => control.Navigate(file3.Path)); 2940await Task.Run(() => Assert.True(control.GoBack())); 2949await Task.Run(() => Assert.True(control.GoBack())); 3028await Task.Run(() => control.Navigate(file1.Path)); 3036await Task.Run(() => control.Navigate(file2.Path)); 3046await Task.Run(() => control.Navigate(file3.Path)); 3055await Task.Run(() => Assert.True(control.GoBack())); 3064await Task.Run(() => Assert.True(control.GoForward())); 3250await Task.Run(() => control.Navigate(file.Path)); 3264await Task.Run(() => control.Navigate(file.Path)); 3291await Task.Run(() => control.Navigate(new Uri(file.Path))); 3296await Task.Run(() => control.Navigate(nullOrEmptyString)); 3362await Task.Run(() => control.Navigate(new Uri(file.Path))); 3376await Task.Run(() => control.Navigate(new Uri(file.Path))); 3409await Task.Run(() => control.Navigate(new Uri(file.Path))); 3414await Task.Run(() => control.Navigate(nullOrEmptyUri)); 3441await Task.Run(() => control.Navigate(file1.Path)); 3449await Task.Run(() => control.Navigate(file2.Path)); 3968await Task.Run(() => control.Navigate(file.Path)); 4115await Task.Run(() => control.Navigate(file.Path));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\SendInput.cs (1)
75await Task.Run(() => actions(new InputSimulator()));
Wasm.Performance.Driver (1)
Program.cs (1)
301Task.Run(() =>