Share via


IExportedBrokeredService.Descriptor Property

Definition

Gets the ServiceRpcDescriptor to be used when activating the service.

public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor? Descriptor { get; }
member this.Descriptor : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public ReadOnly Property Descriptor As ServiceRpcDescriptor

Property Value

Remarks

When a brokered service supports multiple versions in their ServiceMoniker, it may be important to consider the version being activated to know which ServiceRpcDescriptor to return from this property. This ServiceMoniker may be imported via MEF in the same MEF part that implements this interface in order to check the value before returning from this property getter.

This property may return null when the brokered service does not support the version of the service requested by the client. This will result in the client receiving null instead of a service instance.

Applies to