| Session Constructor |
| Name | Description | |
|---|---|---|
| Session | ||
| Session(SessionOptions) |
Creates a session with the specified sessionOptions.
Same as calling
Session(sessionOptions, eventHandler: null, eventDispatcher: null).
Values in sessionOptions are used for configuring this session.
| |
| Session(SessionOptions, EventHandler) |
Creates a session with the specified sessionOptions and dispatch
events on this session to the specified eventHandler.
Same as calling
Session(sessionOptions, eventHandler, eventDispatcher: null)
Values in sessionOptions are used for configuring this session.
The event handler to which all events are delivered. | |
| Session(SessionOptions, EventHandler, EventDispatcher) |
Creates a session with the specified sessionOptions and dispatch
events on this Session to the specified eventHandler.
See SessionOptions for information on what options can be specified.
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.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. |