ServiceBrokerClient(IServiceBroker, JoinableTaskFactory) Constructor
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.
Initializes a new instance of the ServiceBrokerClient class.
public ServiceBrokerClient (Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory = default);
new Microsoft.ServiceHub.Framework.ServiceBrokerClient : Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.VisualStudio.Threading.JoinableTaskFactory -> Microsoft.ServiceHub.Framework.ServiceBrokerClient
Public Sub New (serviceBroker As IServiceBroker, Optional joinableTaskFactory As JoinableTaskFactory = Nothing)
Parameters
- serviceBroker
- IServiceBroker
The underlying service broker.
- joinableTaskFactory
- JoinableTaskFactory
A means to avoid deadlocks if the authorization service requires the main thread. May be null.