Compartir a través de


CommandSet.InitializeAsync(IServiceBroker, Update, CancellationToken) Method

Definition

Allows the command set to initialize asynchronously.

public System.Threading.Tasks.Task InitializeAsync (Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, Microsoft.VisualStudio.RpcContracts.Commands.Update initialCommandStates, System.Threading.CancellationToken cancellationToken);
override this.InitializeAsync : Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.VisualStudio.RpcContracts.Commands.Update * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function InitializeAsync (serviceBroker As IServiceBroker, initialCommandStates As Update, cancellationToken As CancellationToken) As Task

Parameters

serviceBroker
IServiceBroker

A service broker that can be used to load external services.

initialCommandStates
Update

The initial states of the properties of the command's owned by the command set.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Implements

Applies to