Dispatcher

Class

Superclasses

System.Object
  Dispatcher

Visual Basic

Public Class Dispatcher

C#

public class Dispatcher

Purpose

Dispatch events from a queue or queue group.

Remarks

Each instance of this class represents a thread that loops indefinitely, repeatedly dispatching a queue or queue group.

This class is a programming convenience. Programs can implement specialized dispatcher threads, and use them instead of this class.

Destroying a dispatcher stops it from dispatching its queue or queue group. The method Dispatcher.Destroy destroys a dispatcher explicitly and immediately. You can also destroy a dispatcher implicitly by deleting all references to it, but the garbage collector might introduce a delay before it destroys the object.

Method

Description

Page

Dispatcher

Create a dispatcher thread.

Dispatcher

Dispatcher.Destroy

Destroy a dispatcher thread.

Dispatcher.Destroy

Dispatcher.Join

Wait for a dispatcher thread to finish.

Dispatcher.Join

Dispatcher.Pause

Pause a dispatcher thread (so it does not dispatch events).

Dispatcher.Pause

Dispatcher.Resume

Resume a dispatcher thread (after pause).

Dispatcher.Resume

Member

Description

 

Public Instance Properties

Dispatchable

IDispatchable

The dispatcher dispatches this queue or queue group.

Get

See Also

Queue.Dispatch