IProviderSessionRegisterService Method (String, Identity, ServiceRegistrationOptions) |
Attempts to register the service and blocks until the service is
either registered successfully or has failed to be registered.
This method does not return until a
SERVICE_STATUS event has been
generated. Note that if the session was created in asynchronous
mode, the event may be processed before the function returns.
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.16.0.1
Syntax bool RegisterService(
string serviceName,
Identity providerIdentity,
ServiceRegistrationOptions registrationOptions
)
Function RegisterService (
serviceName As String,
providerIdentity As Identity,
registrationOptions As ServiceRegistrationOptions
) As Boolean
bool RegisterService(
String^ serviceName,
Identity^ providerIdentity,
ServiceRegistrationOptions^ registrationOptions
)
abstract RegisterService :
serviceName : string *
providerIdentity : Identity *
registrationOptions : ServiceRegistrationOptions -> bool
Parameters
- serviceName
- Type: SystemString
The URI of the service to register.
The URI must begin with a full qualified service name. That is, it
must begin with "//{namespace}/{service-name}[/]". Any portion of
the URI after the service name is ignored.
- providerIdentity
- Type: Bloomberglp.BlpapiIdentity
Used to verify permissions to provide the service being registered.
- registrationOptions
- Type: Bloomberglp.BlpapiServiceRegistrationOptions
Specify options like group ID, service priority and parts of the
service being registered.
Return Value
Type:
Boolean
Returns
true if the service is registered successfully and
false if the service failed to register.
See Also