Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTok.IDispatcher

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...

Detailed Description

Interface for a class used by Session, Publisher, and Subscriber instances to schedule events to a different thread.

Member Function Documentation

◆ DispatchEvent()

void OpenTok.IDispatcher.DispatchEvent ( object  sender,
EventHandler  handler 
)

Schedules a parameterless event.

Parameters
senderOriginator of the event.
handlerMethod to call after scheduling to the new thread.

Implemented in OpenTok.DedicatedWorkerDispatcher, OpenTok.WPFDispatcher, OpenTok.WinFormsDispatcher, OpenTok.ThreadPoolDispatcher, and OpenTok.DirectDispatcher.

◆ DispatchEvent< T >()

void OpenTok.IDispatcher.DispatchEvent< T > ( object  sender,
EventHandler< T >  handler,
args 
)

Schedules a typed parameter event.

Template Parameters
TThe type of the parameter
Parameters
senderOriginator of the event.
handlerMethod to call after scheduling to the new thread.
argsParameter to pass to the handler.

Implemented in OpenTok.DedicatedWorkerDispatcher, OpenTok.ThreadPoolDispatcher, OpenTok.WPFDispatcher, OpenTok.WinFormsDispatcher, and OpenTok.DirectDispatcher.

Type Constraints
T :EventArgs