OpenTok.IDispatcher

public interface IDispatcher

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

Methods

Name Description
DispatchEvent(sender, handler)
DispatchEvent< T >(sender, handler, args)

DispatchEvent(sender, handler)

Parameters:
Name Type Description
sender object Originator of the event.
handler EventHandler Method to call after scheduling to the new thread.

DispatchEvent< T >(sender, handler, args)

Parameters:
Name Type Description
sender object Originator of the event.
handler EventHandler&lt;T&gt; Method to call after scheduling to the new thread.
args T Parameter to pass to the handler.