ExtensionCore.ProfferBrokeredService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Optional factory to utilize, if null an instance of type specified in configuration will be created via dependency injection.