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 CommandManager.RunCommandAsync(CancellationToken) method and its overloads will set this property prior to calling the IAsyncCommand.RunAsync() method.
Use the AsyncCommandBase class as a base class for your command to get a default implementation of the ICommand.Run() method and the CancellationToken property.
CancellationToken | Gets or sets the cancellation token that can be used by the IAsyncCommand.RunAsync() method. |
Run |
Runs the command.
(Inherited from ICommand) |
RunAsync |
Runs the command asynchronously.
(Inherited from IAsyncCommand) |