AspNetCoreDiagnosticScenarios icon indicating copy to clipboard operation
AspNetCoreDiagnosticScenarios copied to clipboard

TaskCreationOptions for > .Net 4.6

Open JKamsker opened this issue 4 years ago • 1 comments

I know that this Repo is dedicated to AspNet core but which TaskCreationOptions should i take for .net versions below 4.6? In .Net 4.5, TaskCreationOptions.RunContinuationsAsynchronously does not exist.

JKamsker avatar Dec 21 '19 15:12 JKamsker

Then you need to be aware of the places that call SetResult or TrySetResult and potentially, they should be doing ThreadPool.QueueUserWorkItem or Task.Run. SignalR does this on .NET Framework https://github.com/SignalR/SignalR/blob/main/src/Microsoft.AspNet.SignalR.Core/Infrastructure/DispatchingTaskCompletionSource.cs

davidfowl avatar Mar 21 '21 18:03 davidfowl