public interface IAsyncCommand : ICommand
Public Interface IAsyncCommand
Inherits ICommand
Dim instance As IAsyncCommand
public interface class IAsyncCommand : ICommand
This interface adds a RunAsync method to the ICommand interface, that will be invoked by the CommandManagerRunCommandAsync method and its overloads. This allows you to write tasks that use asynchronous code.
Use the AsyncCommandBase class as a base class for your command to get a default implementation of the ICommandRun
If you want to use the cancellation token passed to the CommandManagerRunCommandAsync(CancellationToken) method, you should instead implement the IAsyncCancelableCommand interface, or derive from the AsyncCommandBase class.