Implementation of IDispatcher that uses different threads from the managed ThreadPool to deliver events. Available for all application types. Important: Delivery order is not guaranteed. CPU-intensive or long-running tasks can be executed in the handlers, as the underlying thread system is prepared to handle this. UI can't be manipulated directly in the handlers. If this is required, events must be scheduled first to the UI thread. More...
Inherits OpenTok.IDispatcher.
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... |
Implementation of IDispatcher that uses different threads from the managed ThreadPool to deliver events. Available for all application types. Important: Delivery order is not guaranteed. CPU-intensive or long-running tasks can be executed in the handlers, as the underlying thread system is prepared to handle this. UI can't be manipulated directly in the handlers. If this is required, events must be scheduled first to the UI thread.
void OpenTok.ThreadPoolDispatcher.DispatchEvent | ( | object | sender, |
EventHandler | handler | ||
) |
Schedules a parameterless event.
sender | Originator of the event. |
handler | Method to call after scheduling to the new thread. |
Implements OpenTok.IDispatcher.
void OpenTok.ThreadPoolDispatcher.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. |
Implements OpenTok.IDispatcher.
T | : | EventArgs |