Interface for a class used by Session, Publisher, and Subscriber instances to schedule events to a different thread. More...
Inherited by OpenTok.DedicatedWorkerDispatcher, OpenTok.DirectDispatcher, OpenTok.ThreadPoolDispatcher, OpenTok.WinFormsDispatcher, and OpenTok.WPFDispatcher.
Public Member Functions | |
void | DispatchEvent (object sender, EventHandler handler) |
Schedules a parameterless event. More... | |
void | DispatchEvent< T > (object sender, EventHandler< T > handler, T args) |
Schedules a typed parameter event. More... |
Interface for a class used by Session, Publisher, and Subscriber instances to schedule events to a different thread.
void OpenTok.IDispatcher.DispatchEvent | ( | object | sender, |
EventHandler | handler | ||
) |
Schedules a parameterless event.
sender | Originator of the event. |
handler | Method to call after scheduling to the new thread. |
Implemented in OpenTok.DedicatedWorkerDispatcher, OpenTok.WPFDispatcher, OpenTok.WinFormsDispatcher, OpenTok.ThreadPoolDispatcher, and OpenTok.DirectDispatcher.
void OpenTok.IDispatcher.DispatchEvent< T > | ( | object | sender, |
EventHandler< T > | handler, | ||
T | args | ||
) |
Schedules a typed parameter event.
T | The type of the parameter |
sender | Originator of the event. |
handler | Method to call after scheduling to the new thread. |
args | Parameter to pass to the handler. |
Implemented in OpenTok.DedicatedWorkerDispatcher, OpenTok.ThreadPoolDispatcher, OpenTok.WPFDispatcher, OpenTok.WinFormsDispatcher, and OpenTok.DirectDispatcher.
T | : | EventArgs |