HubClient.RegisterService(ServiceMoniker, ServiceModuleInfo) Method

Definition

Register a service with an in memory ServiceModuleInfo so that it can be requested via this HubClient object later.

public:
 void RegisterService(Microsoft::ServiceHub::Framework::ServiceMoniker ^ moniker, Microsoft::ServiceHub::Utility::ServiceModuleInfo ^ serviceModuleInfo);
public void RegisterService (Microsoft.ServiceHub.Framework.ServiceMoniker moniker, Microsoft.ServiceHub.Utility.ServiceModuleInfo serviceModuleInfo);
member this.RegisterService : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Utility.ServiceModuleInfo -> unit
Public Sub RegisterService (moniker As ServiceMoniker, serviceModuleInfo As ServiceModuleInfo)

Parameters

moniker
ServiceMoniker

The moniker of the service to register.

serviceModuleInfo
ServiceModuleInfo

The information related to the service being registered.

Applies to