IRemoteServiceBroker.HandshakeAsync Method

Definition

Introduces the client to the server to detail the client's capabilities.

C#
public System.Threading.Tasks.Task HandshakeAsync(Microsoft.ServiceHub.Framework.ServiceBrokerClientMetadata clientMetadata, System.Threading.CancellationToken cancellationToken = default);

Parameters

clientMetadata
ServiceBrokerClientMetadata

The environment, capabilities and attributes of a client of the IRemoteServiceBroker.

cancellationToken
CancellationToken

A cancellation token.

Returns

A task representing this async call.

Exceptions

Thrown when this service broker does not support any of the supported service connection kinds that the client offered in SupportedConnections.

Applies to

Product Versions
Visual Studio SDK 2019, 2022