Click or drag to resize
IAbstractSessionGenerateToken Method (String, String, CorrelationID, IEventQueue)
Generate a token to be used for authorization.

Valid authentication options must have been specified in the SessionOptions.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.9.1
Syntax
CorrelationID GenerateToken(
	string userId,
	string ipAddress,
	CorrelationID correlationId,
	IEventQueue eventQueue
)

Parameters

userId
Type: SystemString
The user for which the token will be generated.
ipAddress
Type: SystemString
An IPv4 or IPv6 address.
correlationId
Type: Bloomberglp.BlpapiCorrelationID
An optional CorrelationID for correlating this request. If null one is generated internally.

Must not already be in use.

eventQueue
Type: Bloomberglp.BlpapiIEventQueue
IEventQueue to be used to receive response events for this request. If null, events for this request are delivered to the session's event queue.

Return Value

Type: CorrelationID
The CorrelationID for this asynchronous request.
See Also