70 references to ExecuteSynchronously
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
412TaskContinuationOptions.ExecuteSynchronously,
Microsoft.AspNetCore.Owin (1)
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
129adapter.UpstreamTask.ContinueWith(adapter.EnsureCompleted, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
602TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted,
Microsoft.Build (4)
BackEnd\BuildManager\BuildManager.cs (1)
2392}, TaskContinuationOptions.ExecuteSynchronously);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
118.ContinueWith(t => { }, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted); 152.ContinueWith(t => { }, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted);
BackEnd\Components\Scheduler\Scheduler.cs (1)
603return completionSource.Task.ContinueWith((Task<int> task) => grantCores(task.Result), TaskContinuationOptions.ExecuteSynchronously);
System.Net.Http (7)
System\Net\Http\MessageProcessingHandler.cs (1)
103}, tcs, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
426}, altSvcBlocklistTimerCt, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); 435}, altSvcBlocklistTimerCt, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
159}, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); 392}, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Current);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
185CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 202CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default);
System.Net.NameResolution (2)
System\Net\Dns.cs (2)
139}, hostNameOrAddress, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); 698}, key, CancellationToken.None, TaskContinuationOptions.OnlyOnCanceled | TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
System.Net.Quic (1)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
320}, handle, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
601TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously,
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
575}, readWriteTask, default, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (8)
697/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 731/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 881/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 916/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1077/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1120/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1296/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1341/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>.
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (11)
3511if ((stc.m_options & TaskContinuationOptions.ExecuteSynchronously) == 0) 3686/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 3719/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 3867/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 3901/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4062/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4099/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4265/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4303/// cref="TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4392const TaskContinuationOptions IllegalMask = TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.LongRunning; 4401TaskContinuationOptions.LazyCancellation | TaskContinuationOptions.ExecuteSynchronously)) != 0)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
324(options & TaskContinuationOptions.ExecuteSynchronously) != 0) // synchronous execution was requested by the continuation's creator
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (2)
3015const TaskContinuationOptions illegalMask = TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.LongRunning; 3030TaskContinuationOptions.ExecuteSynchronously)) != 0)
System.Text.RegularExpressions (11)
System\Threading\StackHelper.cs (11)
40.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 51.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 64.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 79.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 96.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 115.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 123.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 133.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 145.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 159.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 175.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default)
System.Text.RegularExpressions.Generator (11)
src\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (11)
40.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 51.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 64.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 79.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 96.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 115.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 123.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 133.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 145.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 159.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default) 175.ContinueWith(t => t.GetAwaiter().GetResult(), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default)
System.Threading.Tasks.Dataflow (7)
Base\DataflowBlock.cs (3)
2472Common.GetContinuationOptions(TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously), 2485Common.GetContinuationOptions(TaskContinuationOptions.NotOnFaulted | TaskContinuationOptions.ExecuteSynchronously), 2487}, this, Canceler.Token, Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default);
Blocks\ActionBlock.cs (1)
196}, this, CancellationToken.None, Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default);
Blocks\TransformBlock.cs (1)
265Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default);
Blocks\TransformManyBlock.cs (1)
246Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously),
Blocks\TransformManyBlock.IAsyncEnumerable.cs (1)
43t.ContinueWith(static t => Debug.Assert(t.IsCompletedSuccessfully), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);