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.8.1
Syntax CorrelationID GenerateToken(
string userId,
string ipAddress,
CorrelationID correlationId,
IEventQueue eventQueue
)
Function GenerateToken (
userId As String,
ipAddress As String,
correlationId As CorrelationID,
eventQueue As IEventQueue
) As CorrelationID
CorrelationID^ GenerateToken(
String^ userId,
String^ ipAddress,
CorrelationID^ correlationId,
IEventQueue^ eventQueue
)
abstract GenerateToken :
userId : string *
ipAddress : string *
correlationId : CorrelationID *
eventQueue : IEventQueue -> CorrelationID
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