Compartilhar via


ExtensionCore.ProfferBrokeredService Method

Definition

Proffers a brokered service using the configuration and provided descriptor.

protected void ProfferBrokeredService (Microsoft.VisualStudio.Extensibility.BrokeredServiceConfiguration brokeredServiceConfiguration, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor descriptor, Microsoft.VisualStudio.Extensibility.ExtensionCore.ProfferedServiceFactory? factory = default);
member this.ProfferBrokeredService : Microsoft.VisualStudio.Extensibility.BrokeredServiceConfiguration * Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Extensibility.ExtensionCore.ProfferedServiceFactory -> unit
Protected Sub ProfferBrokeredService (brokeredServiceConfiguration As BrokeredServiceConfiguration, descriptor As ServiceRpcDescriptor, Optional factory As ExtensionCore.ProfferedServiceFactory = Nothing)

Parameters

brokeredServiceConfiguration
BrokeredServiceConfiguration

Brokered service configuration to proffer.

descriptor
ServiceRpcDescriptor

Descriptor to utilize when initializing the service.

factory
ExtensionCore.ProfferedServiceFactory

Optional factory to utilize, if null an instance of type specified in configuration will be created via dependency injection.

Applies to