/// <summary>Determines whether a Task may be inlined.</summary> /// <param name="task">The task to be executed.</param> /// <param name="taskWasPreviouslyQueued">Whether the task was previously queued.</param> /// <returns>true if the task was successfully inlined; otherwise, false.</returns> protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued) { return false; }
/// <summary>Queues a Task to be executed by this scheduler.</summary> /// <param name="task">The task to be executed.</param> protected override void QueueTask(Task task) { // Push it into the blocking collection of tasks tasks.Add(task); }