Click or drag to resize

SingleThreadTaskScheduler Class

A Task Scheduler class that execute tasks in a queue that is dequeued by the same single thread.
Inheritance Hierarchy
SystemObject
  System.Threading.TasksTaskScheduler
    callback.ShellBoost.Core.UtilitiesSingleThreadTaskScheduler

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public sealed class SingleThreadTaskScheduler : TaskScheduler, 
	IDisposable

The SingleThreadTaskScheduler type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDequeueOnDispose
Gets or sets a value indicating whether to dequeue the remaining tasks when this instance is disposed. Dequeuing will happen on the thread callind Dispose(), not on the scheduler's thread.
Public propertyDequeueTimeout
Gets or sets a value that defines the time to wait between dequeues.
Public propertyDisposeThreadJoinTimeout
Gets or sets a value that defines the maximum time to wait for the thread to finish when this instance is disposed.
Public propertyId
Gets the unique ID for this TaskScheduler.
(Inherited from TaskScheduler.)
Public propertyLastDequeue
Gets a value that indicates the last dequeue time.
Public propertyMaximumConcurrencyLevel
Indicates the maximum concurrency level this TaskScheduler is able to support.
(Inherited from TaskScheduler.)
Public propertyQueueCount
Gets the number of currently queued tasks.
Public propertyWaitTimeout
Gets or sets a value that defines the maximum time to periodically wait for stop and dequeue events to happen.
Top
Methods
  NameDescription
Public methodClearQueue
Remove all tasks from the queue. Dequeuing will happen on the current thread, not on the scheduler's thread.
Public methodDispose
Releases all resources used by this instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTriggerDequeue
Executes any tasks in queue, sending a dequeue event to the thread.
Top
Events
  NameDescription
Public eventExecuting
Occurs when a task is being executed.
Top
See Also