public interface IAsyncCancelableCommand : IAsyncCommand,
ICommand
Public Interface IAsyncCancelableCommand
Inherits IAsyncCommand, ICommand
Dim instance As IAsyncCancelableCommand
public interface class IAsyncCancelableCommand : IAsyncCommand,
ICommand
This interface adds a CancellationToken property to the IAsyncCommand interface. The CommandManagerRunCommandAsync(CancellationToken) method and its overloads will set this property prior to calling the IAsyncCommandRunAsync method.
Use the AsyncCommandBase class as a base class for your command to get a default implementation of the ICommandRun method and the CancellationToken property.
CancellationToken | Gets or sets the cancellation token that can be used by the IAsyncCommandRunAsync method. |
Run |
Runs the command.
(Inherited from ICommand) |
RunAsync |
Runs the command asynchronously.
(Inherited from IAsyncCommand) |