{
// If we're allowed to inline, run the action on this thread.
if (canInlineContinuationTask &&
- m_syncContext == SynchronizationContext.CurrentNoFlow)
+ m_syncContext == SynchronizationContext.Current)
{
RunCallback(GetInvokeActionCallback(), m_action, ref Task.t_currentTask);
}
{
// If there's a SynchronizationContext, we'll be conservative and say
// this is a bad location to inline.
- var ctx = SynchronizationContext.CurrentNoFlow;
+ var ctx = SynchronizationContext.Current;
if (ctx != null && ctx.GetType() != typeof(SynchronizationContext)) return false;
// Similarly, if there's a non-default TaskScheduler, we'll be conservative