Implementation of IDispatcher that uses a dedicated worker thread to deliver events. Available for all application types. Delivery order is guaranteed. CPU-intensive or long-running tasks can be executed in the handlers, as the dedicated thread is not used for any other purpose. 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, and IDisposable.
|
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...
|
void | Dispose () |
|
virtual void | Dispose (bool disposing) |
Implementation of IDispatcher that uses a dedicated worker thread to deliver events. Available for all application types. Delivery order is guaranteed. CPU-intensive or long-running tasks can be executed in the handlers, as the dedicated thread is not used for any other purpose. UI can't be manipulated directly in the handlers. If this is required, events must be scheduled first to the UI thread.
◆ DispatchEvent()
void OpenTok.DedicatedWorkerDispatcher.DispatchEvent |
( |
object |
sender, |
|
|
EventHandler |
handler |
|
) |
| |
Schedules a parameterless event.
- Parameters
-
sender | Originator of the event. |
handler | Method to call after scheduling to the new thread. |
Implements OpenTok.IDispatcher.
◆ DispatchEvent< T >()
Schedules a typed parameter event.
- Template Parameters
-
T | The type of the parameter |
- Parameters
-
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.