Click or drag to resize
ProviderSession Constructor (SessionOptions, ProviderEventHandler, EventDispatcher)
Constructs a Session using the optionally specified 'options', the optionally specified 'eventHandler'.

See the SessionOptions documentation for details on what can be specified in the 'options'.

If 'eventHandler' is not null then this Session will operation in asynchronous mode, otherwise the Session will operate in synchronous mode.

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.

If 'eventHandler' is null and the 'eventDispatcher' is not null an exception is thrown.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.26.3.64-experimental+d7d4d9bba07b94fd0a19ff78810b8add95447f66
Syntax
public ProviderSession(
	SessionOptions options,
	ProviderEventHandler eventHandler,
	EventDispatcher dispatcher
)

Parameters

options
Type: Bloomberglp.BlpapiSessionOptions
eventHandler
Type: Bloomberglp.BlpapiProviderEventHandler
dispatcher
Type: Bloomberglp.BlpapiEventDispatcher
See Also