次の方法で共有


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.

joinableTaskFactory
JoinableTaskFactory

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

Applies to