System.Threading.Tasks.TaskScheduler Members

The members of System.Threading.Tasks.TaskScheduler are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Public Properties

[read-only]
static
CurrentTaskScheduler.

Gets the System.Threading.Tasks.TaskScheduler associated with the currently executing task.

[read-only]
static
DefaultTaskScheduler.

Gets the default System.Threading.Tasks.TaskScheduler instance that is provided by the .NET Framework.

[read-only]
Idint.

Gets the unique ID for this System.Threading.Tasks.TaskScheduler.

[read-only]
MaximumConcurrencyLevelint.

Indicates the maximum concurrency level this System.Threading.Tasks.TaskScheduler is able to support.

Public Methods

Protected Methods

abstract
GetScheduledTasks() : IEnumerable<Task>

For debugger support only, generates an enumerable of System.Threading.Tasks.Task instances currently queued to the scheduler waiting to be executed.

abstract
QueueTask(Task)

Queues a System.Threading.Tasks.Task to the scheduler.

TryDequeue(Task) : bool

Attempts to dequeue a System.Threading.Tasks.Task that was previously queued to this scheduler.

TryExecuteTask(Task) : bool

Attempts to execute the provided System.Threading.Tasks.Task on this scheduler.

abstract
TryExecuteTaskInline(Task, bool) : bool

Determines whether the provided System.Threading.Tasks.Task can be executed synchronously in this call, and if it can, executes it.

Public Events

static
UnobservedTaskException

Occurs when a faulted task's unobserved exception is about to trigger exception escalation policy, which, by default, would terminate the process.