Bloomberg API for .NET
RegisterService Method (serviceName, providerIdentity)
NamespacesBloomberglp.BlpapiProviderSessionRegisterService(String, Identity)

Attempts to register the service identified by the specified 'uri' and blocks until the service is either registered successfully or has failed to be registered. The specified 'providerIdentity' is used to verify permissions to provide the service being registered. Returns true if the service is registered successfully and false if the service cannot be registered successfully.

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.

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.

Declaration Syntax
C#Visual BasicVisual C++
public bool RegisterService(
	string serviceName,
	Identity providerIdentity
)
Public Function RegisterService ( 
	serviceName As String,
	providerIdentity As Identity
) As Boolean
public:
bool RegisterService(
	String^ serviceName, 
	Identity^ providerIdentity
)
Parameters
serviceName (String)
providerIdentity (Identity)
Return Value
Boolean
true on success and false otherwise
Exceptions
ExceptionCondition
InvalidOperationException The session is not started.

Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.7.4.1