Share via


ExtensionPartManager.GetServiceDescriptor Method

Definition

Gets the service descriptor for a given service moniker.

protected virtual Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor GetServiceDescriptor (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken? extension);
abstract member GetServiceDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken -> Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor
override this.GetServiceDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken -> Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor
Protected Overridable Function GetServiceDescriptor (serviceMoniker As ServiceMoniker, extension As ExtensionIdentificationToken) As ExtensionPartServiceJsonRpcDescriptor

Parameters

serviceMoniker
ServiceMoniker

Service moniker to generate the descriptor for.

extension
ExtensionIdentificationToken

Optional extension that the part belongs to.

Returns

an instance of ExtensionPartServiceJsonRpcDescriptor.

Remarks

Any custom implementation returned here must inherit from ExtensionPartServiceJsonRpcDescriptor and call its base types to allow for contract interface aggregation to work correctly.

Applies to