Click or drag to resize
Session Constructor
Overload List
  NameDescription
Public methodSession
Public methodSession(SessionOptions)
Creates a session with the specified sessionOptions.
Remarks
Values in sessionOptions are used for configuring this session.
Public methodSession(SessionOptions, EventHandler)
Creates a session with the specified sessionOptions and dispatch events on this session to the specified eventHandler.
Remarks
Values in sessionOptions are used for configuring this session. The event handler to which all events are delivered.
Public methodSession(SessionOptions, EventHandler, EventDispatcher)
Creates a session with the specified sessionOptions and dispatch events on this Session to the specified eventHandler.
Remarks
See SessionOptions for information on what options can be specified.

If the specified eventHandler is not null then this Session will operate in asynchronous mode, otherwise the Session will operate in Synchronous mode.

If an eventDispatcher is supplied which uses more than one thread the Session will ensure that events which should be ordered are passed to callbacks in a correct order. For example, updates to a single subscription.

Important: In the current C# FFI version, the eventDispatcher parameter is ignored. A default EventDispatcher is always used internally, and any supplied dispatcher has no effect.

Previous versions allowed a custom EventDispatcher to be supplied to enable shared or multithreaded event dispatching across sessions. That behavior is currently not supported.

Values in sessionOptions are used for configuring this Session. The event handler to which all events are delivered.The dispatcher to be used for dispatching events.
Top
See Also