| Session Constructor (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.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.25.11.64-experimental+d519cd77c15f00eb425bcde0dbe3273921f5910b
Syntaxpublic Session(
SessionOptions sessionOptions,
EventHandler eventHandler,
EventDispatcher eventDispatcher
)
Public Sub New (
sessionOptions As SessionOptions,
eventHandler As EventHandler,
eventDispatcher As EventDispatcher
)
public:
Session(
SessionOptions^ sessionOptions,
EventHandler^ eventHandler,
EventDispatcher^ eventDispatcher
)
new :
sessionOptions : SessionOptions *
eventHandler : EventHandler *
eventDispatcher : EventDispatcher -> SessionParameters
- sessionOptions
- Type: Bloomberglp.BlpapiSessionOptions
- eventHandler
- Type: Bloomberglp.BlpapiEventHandler
- eventDispatcher
- Type: Bloomberglp.BlpapiEventDispatcher
See Also