71 references to Run
ClientSample (1)
UploadSample.cs (1)
87_ = Task.Run(async () =>
HttpStress (1)
Program.cs (1)
579Task.WaitAll(Enumerable.Range(0, concurrentRequests).Select(taskNum => Task.Run(async () =>
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
745tasks.Add(Task.Run(RunRequests));
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
61tasks.Add(Task.Run(RunRequests));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
745tasks.Add(Task.Run(RunRequests));
ILCompiler.DependencyAnalysisFramework (1)
src\coreclr\tools\Common\Sorting\MergeSortCore.cs (1)
42Task rightSortTask = Task.Run(() => ParallelSort(arrayToSort, index + halfLen, length - halfLen, comparer));
InMemory.FunctionalTests (1)
RequestTests.cs (1)
604tasks.Add(Task.Run(async () =>
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
551var t2 = Task.Run(() => WriteManyTimesToResponseBody(ctx)); 552var t1 = Task.Run(() => ReadRequestBody(ctx)); 750var t2 = Task.Run(() => WriteResponseBodyAFewTimes(ctx)); 751var t1 = Task.Run(() => ReadRequestBody(ctx));
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\CircuitRegistryTest.cs (2)
319await Task.Run(() => tcs.Task.TimeoutAfter(TimeSpan.FromSeconds(10))); 345await Task.Run(() => tcs.Task.TimeoutAfter(TimeSpan.FromSeconds(10)));
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
5842Task.Run(async () =>
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
BasicBlazorHybridTest.cs (1)
95Task.Run(async () =>
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
346var runHostAndVerifyApplicationStopped = Task.Run(async () =>
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionManagerTests.cs (2)
106connection.ApplicationTask = Task.Run(async () => 249connection.ApplicationTask = Task.Run(async () =>
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
103_outputTask = Task.Run(ProcessLogQueue);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (12)
CacheTagHelperTest.cs (8)
592var task1 = Task.Run(async () => 599var task2 = Task.Run(async () => 675var task1 = Task.Run(async () => 682var task2 = Task.Run(async () => 874var task1 = Task.Run(() => cacheTagHelper1.ProcessAsync(GetTagHelperContext(cache.Key1), tagHelperOutput)); 875var task2 = Task.Run(() => cacheTagHelper2.ProcessAsync(GetTagHelperContext(cache.Key2), tagHelperOutput)); 918var task1 = Task.Run(() => cacheTagHelper1.ProcessAsync(GetTagHelperContext(cache.Key1), tagHelperOutput1)); 919var task2 = Task.Run(() => cacheTagHelper2.ProcessAsync(GetTagHelperContext(cache.Key2), tagHelperOutput2));
DistributedCacheTagHelperTest.cs (4)
595var task1 = Task.Run(async () => 602var task2 = Task.Run(async () => 687var task1 = Task.Run(async () => 694var task2 = Task.Run(async () =>
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
DefaultDisplayTemplatesTest.cs (1)
351.Returns(Task.Run(() =>
DefaultEditorTemplatesTest.cs (1)
1299.Returns(Task.Run(() =>
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http2\Http2FrameWriter.cs (1)
141_writeQueueTask = Task.Run(WriteToOutputPipe);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
KestrelServerTests.cs (1)
696var continuationTask = Task.Run(async () =>
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
NamedPipesTransportBenchmark.cs (1)
98parallelTasks[i] = Task.Run(async () =>
PipeThroughputBenchmark.cs (2)
29var writing = Task.Run(async () => 39var reading = Task.Run(async () =>
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeConnectionListener.cs (2)
81listeningTasks[i] = Task.Run(() => StartAsync(initialStream)); 84_completeListeningTask = Task.Run(async () =>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (1)
2924_runTask = Task.Run(Run);
Hubs.cs (3)
221Task.Run(async () => 245_ = Task.Run(async () => 269_ = Task.Run(async () =>
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
162_ = Task.Run(async () =>
Microsoft.AspNetCore.SignalR.Tests (9)
HubConnectionHandlerTestUtils\Hubs.cs (9)
346_ = Task.Run(async () => 694_ = Task.Run(async () => 797_ = Task.Run(async () => 1018Task.Run(async () => 1033Task.Run(async () => 1048Task.Run(async () => 1063Task.Run(() => 1078Task.Run(async () => 1114Task.Run(async () =>
Microsoft.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
382var writeTask = Task.Run(async () =>
Microsoft.Build (2)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
821cleanupTasks[idx++] = Task.Run(async () =>
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
676Task.Run(async delegate
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\UploadToAzure.cs (1)
87uploadTasks.Add(Task.Run(async () =>
Microsoft.DotNet.Helix.Sdk (1)
HelixTask.cs (1)
58System.Threading.Tasks.Task.Run(() => ExecuteCore(_cancel.Token)).GetAwaiter().GetResult();
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceProviderEngineScope.cs (1)
111Task.Run(() => ((IAsyncDisposable)localService).DisposeAsync().AsTask()).GetAwaiter().GetResult();
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
162_outputTask = Task.Run(ProcessLogQueue);
SignalRSamples (2)
Hubs\Streaming.cs (1)
34Task.Run(async () =>
Hubs\UploadHub.cs (1)
67_ = Task.Run(async () =>
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
803var sendTask = Task.Run(async () =>
Wasm.Performance.Driver (1)
Selenium.cs (1)
99_ = Task.Run(async () =>
WebSocketSample (1)
Program.cs (1)
32var sending = Task.Run(async () =>