ProviderSessionRegisterServiceAsync Method (String, Identity, CorrelationID) |
Begins the process of registering the service identified by
serviceName and returns immediately.
When providerIdentity is null the session
identity will be used if it's been authorized.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.6.1
Syntax public CorrelationID RegisterServiceAsync(
string serviceName,
Identity providerIdentity,
CorrelationID correlationId
)
Public Function RegisterServiceAsync (
serviceName As String,
providerIdentity As Identity,
correlationId As CorrelationID
) As CorrelationID
public:
virtual CorrelationID^ RegisterServiceAsync(
String^ serviceName,
Identity^ providerIdentity,
CorrelationID^ correlationId
) sealed
abstract RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity *
correlationId : CorrelationID -> CorrelationID
override RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity *
correlationId : CorrelationID -> CorrelationID
Parameters
- serviceName
- Type: SystemString
- providerIdentity
- Type: Bloomberglp.BlpapiIdentity
- correlationId
- Type: Bloomberglp.BlpapiCorrelationID
Return Value
Type:
CorrelationID
The actual CorrelationID object that will identify
Event objects generated as a result of this
call.
Implements
IProviderSessionRegisterServiceAsync(String, Identity, CorrelationID)Exceptions Exception | Condition |
---|
InvalidOperationException |
The session is not started.
|
DuplicateCorrelationIDException |
The specified 'correlationId' is currently active for this Session.
|
Remarks providerIdentity is used to verify permissions to
provide the service being registered. The specified 'correlationId'
is used to track Events generated as a result of this call.
serviceName must be a full qualified service
name. That is, it must be of form "//[namespace]/[service-name]".
The application must monitor events for a
EventType.SERVICE_STATUS event which will be generated once
the service has been successfully registered or registration has
failed.
See Also