July 28, 2014
Represents an object that handles the low-level work of queuing tasks onto threads.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|FromCurrentSynchronizationContext||Creates a associated with the current System.Threading.SynchronizationContext.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetScheduledTasks||Security Critical. For debugger support only, generates an enumerable of Task instances currently queued to the scheduler waiting to be executed.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|QueueTask||Security Critical. Queues a Task to the scheduler.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|TryDequeue||Security Critical. Attempts to dequeue a Task that was previously queued to this scheduler.|
|TryExecuteTask||Security Critical. Attempts to execute the provided Task on this scheduler.|
|TryExecuteTaskInline||Security Critical. Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.|
acts as the extension point for all pluggable scheduling logic. This includes mechanisms such as how to schedule a task for execution, and how scheduled tasks should be exposed to debuggers.
For more information and code examples, see [638f8ea5-21db-47a2-a934-86e1e961bf65].
Several sample task schedulers are available on Code Gallery: Samples for Parallel Programming with the .NET Framework 4.