Vonage Video API Windows SDK
Public Member Functions | Properties | List of all members
OpenTok.Context Class Reference

Used to manage resources for Session, Publisher, and Subscriber objects. More...

Inherits IDisposable.

Public Member Functions

 Context (IDispatcher dispatcher=null)
 Constructor for Context that receives a specific IDispatcher for events. More...
 
void Dispose ()
 

Properties

static Context Instance [get]
 The Context instance. This is a singleton instance. However it is reset to a new instance after you call the Dispose() method. This entry point for a Context object is limited in configuration options and only works for WPF presentation framework, so it will be removed eventually. Please use the Context(IDispatcher) constructor and provide the corresponding presentation framework IDispatcher (or one of the common IDispatchers). The new form equivalent of the previous Context.Instance form is new Context(new WPFDispatcher()).
 

Detailed Description

Used to manage resources for Session, Publisher, and Subscriber objects.

Constructor & Destructor Documentation

◆ Context()

OpenTok.Context.Context ( IDispatcher  dispatcher = null)

Constructor for Context that receives a specific IDispatcher for events.

Parameters
dispatcherThe IDispatcher instance used to schedule events. The SDK includes several IDispatcher implementations, which should be enough for most applications. You can also build a custom IDispatcher by overriding the IDispatcher interface. The SDK includes the following IDispatcher implementations, which are available for all presentation frameworks: There is also an IDispatcher implementation provided for each supported presentation framework: