Click or drag to resize
ProviderSessionRegisterService Method
Overload List
  NameDescription
Public methodRegisterService(String, Identity)

Attempts to register the service identified by serviceName 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.

serviceName must be a full qualified service name. That is, it must be of form "//{namespace}/{service-name}".

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.

Public methodRegisterService(String, Identity, ServiceRegistrationOptions)

Attempts to register the service identified by serviceName and blocks until the service is either registered successfully or has failed to be registered. 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.

serviceName must be a full qualified service name. That is, it must be of form with "//{namespace}/{service-name}".

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.

Top
See Also