AsyncCommandBase Class

Base class for asynchronous commands that want the ICommandRun method to invoke the IAsyncCommandRunAsync method.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public abstract class AsyncCommandBase : IAsyncCancelableCommand, 
	IAsyncCommand, ICommand
Inheritance
Object    AsyncCommandBase
Implements
IAsyncCancelableCommand, IAsyncCommand, ICommand

Remarks

This class is provided for convenience for creating asynchronous commands without having to implement the ICommandRun method.

Constructors

AsyncCommandBaseInitializes a new instance of the AsyncCommandBase class

Properties

CancellationToken Gets or sets the cancellation token that can be used by the IAsyncCommandRunAsync method.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Run Calls the RunAsync method and waits synchronously for it to complete.
RunAsync Runs the command asynchronously.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also