IContext Methods

Solclient

IContext Methods
version: 7.2.1.27

The IContext type exposes the following members.

Methods
  Name Description
Public method CreateSession
Creates a session instance. Session properties to customize the session, and message receive and the session event delegates must be provided for the session. The message receive delegate is invoked for each received message on this session. The session event delegate is invoked when session events occur, such as the session going up or down. Both delegates are invoked in the context of the context thread to which this session belongs.

Note: disposing the corresponding context (IContext) or any of its contained context timers (TimerTask), sessions (ISession) or flows (IFlow) must not be performed from within the registered delegates (messageEventHandler or sessionEventHandler).

Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public method Start Obsolete.
Starts the context if it is not already started or disposed.
Public method Stop Obsolete.
Stops the context if it is not already stopped or disposed.
Top
See Also