AspNetCoreDiagnosticScenarios
AspNetCoreDiagnosticScenarios copied to clipboard
TaskCreationOptions for > .Net 4.6
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.
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