CommandSet.InitializeAsync(IServiceBroker, Update, CancellationToken) Method
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.
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.