ProviderSessionRegisterServiceAsync Method (String, Identity, CorrelationID, ServiceRegistrationOptions) |
Begins the process of registering the service identified by
serviceName with identity,
CorrelationID
and registration options. 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.4.1
Syntax public CorrelationID RegisterServiceAsync(
string serviceName,
Identity providerIdentity,
CorrelationID correlationId,
ServiceRegistrationOptions registrationOptions
)
Public Function RegisterServiceAsync (
serviceName As String,
providerIdentity As Identity,
correlationId As CorrelationID,
registrationOptions As ServiceRegistrationOptions
) As CorrelationID
public:
virtual CorrelationID^ RegisterServiceAsync(
String^ serviceName,
Identity^ providerIdentity,
CorrelationID^ correlationId,
ServiceRegistrationOptions^ registrationOptions
) sealed
abstract RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity *
correlationId : CorrelationID *
registrationOptions : ServiceRegistrationOptions -> CorrelationID
override RegisterServiceAsync :
serviceName : string *
providerIdentity : Identity *
correlationId : CorrelationID *
registrationOptions : ServiceRegistrationOptions -> CorrelationID
Parameters
- serviceName
- Type: SystemString
- providerIdentity
- Type: Bloomberglp.BlpapiIdentity
- correlationId
- Type: Bloomberglp.BlpapiCorrelationID
- registrationOptions
- Type: Bloomberglp.BlpapiServiceRegistrationOptions
Return Value
Type:
CorrelationIDImplements
IProviderSessionRegisterServiceAsync(String, Identity, CorrelationID, ServiceRegistrationOptions)Exceptions Exception | Condition |
---|
InvalidOperationException |
The session is not started.
|
DuplicateCorrelationIDException |
The specified 'correlationId' is currently active for this Session.
|
Remarks
In addition to the common arguments, registrationOptions
can be used to specify registration options like group ID,
service priority and parts of the service being registered.
See Also