ProviderSessionRegisterServiceAsync Method (String, Identity) |
Begins the process of registering the service identified by
serviceName with identity and returns immediately.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.7.1
Syntax public CorrelationID RegisterServiceAsync(
string serviceName,
Identity providerIdentity
)
Public Function RegisterServiceAsync (
serviceName As String,
providerIdentity As Identity
) As CorrelationID
public:
virtual CorrelationID^ RegisterServiceAsync(
String^ serviceName,
Identity^ providerIdentity
) sealed
abstract RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity -> CorrelationID
override RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity -> CorrelationID
Parameters
- serviceName
- Type: SystemString
- providerIdentity
- Type: Bloomberglp.BlpapiIdentity
Return Value
Type:
CorrelationID The actual CorrelationID object that will identify
Event objects generated as a result of this
call.
Implements
IProviderSessionRegisterServiceAsync(String, Identity)Exceptions Exception | Condition |
---|
InvalidOperationException |
The session is not started.
|
Remarks providerIdentity is used to verify permissions
to provide the service being registered.
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.
When providerIdentity is null the session
identity will be used if it's been authorized.
See Also