IAsyncCommand Interface

Represents a subcommand that executes asynchronously.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public interface IAsyncCommand : ICommand
Implements
ICommand

Remarks

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

Methods

Run Runs the command.
(Inherited from ICommand)
RunAsync Runs the command asynchronously.

See Also