Partager via


ServiceBrokerClient(IServiceBroker, JoinableTaskFactory) Constructor

Definition

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. This will be disposed of if it implements IDisposable when this ServiceBrokerClient is disposed of.

joinableTaskFactory
JoinableTaskFactory

A means to avoid deadlocks if the authorization service requires the main thread. May be null.

Applies to