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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public abstract class AsyncCommandBase : IAsyncCommand, 
	ICommand
Inheritance
Object    AsyncCommandBase
Implements
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

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