AbstractSessionGenerateToken Method (String, String, CorrelationID, IEventQueue) |
Return a generated token to be used for authorization.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.6.1
Syntax public CorrelationID GenerateToken(
string userId,
string ipAddress,
CorrelationID correlationId,
IEventQueue eventQueue
)
Public Function GenerateToken (
userId As String,
ipAddress As String,
correlationId As CorrelationID,
eventQueue As IEventQueue
) As CorrelationID
public:
virtual CorrelationID^ GenerateToken(
String^ userId,
String^ ipAddress,
CorrelationID^ correlationId,
IEventQueue^ eventQueue
) sealed
abstract GenerateToken :
userId : string *
ipAddress : string *
correlationId : CorrelationID *
eventQueue : IEventQueue -> CorrelationID
override GenerateToken :
userId : string *
ipAddress : string *
correlationId : CorrelationID *
eventQueue : IEventQueue -> CorrelationID
Parameters
- userId
- Type: SystemString
- ipAddress
- Type: SystemString
- correlationId
- Type: Bloomberglp.BlpapiCorrelationID
- eventQueue
- Type: Bloomberglp.BlpapiIEventQueue
Return Value
Type:
CorrelationID
a CorrelationID for this asynchronous openService request.
Implements
IAbstractSessionGenerateToken(String, String, CorrelationID, IEventQueue)Exceptions Exception | Condition |
---|
InvalidOperationException |
Session is not started.
|
ArgumentException |
Invalid authentication option is specified in session option or
there is failure to get authentication information based on
authentication option.
|
DuplicateCorrelationIDException |
The specified correlationId is already active for this Session.
|
Remarks
Generate a token to be used for authorization
See Also