Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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);
 }