The SshTask type exposes the following members.

Constructors

  Name Description
Public method SshTask(String, String, String)
Creates a new task instance.
Public method SshTask(String, String, String, String)
Creates a new task instance.

Methods

  Name Description
Public method Cancel
Cancels the task execution.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Execute
Executes a task command.
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public field Static member ACTIVE
Task is active and waiting for start prompt to execute command.
Public field Static member COMPLETE
Task has finished execution of command and has received end prompt.
Public field Static member PENDING
Task is waiting to be activated.
Public field Static member RUNNING
Task has received start prompt and is currently executing command.

Properties

  Name Description
Public property Command
The command line.
Public property EndPrompt
The end prompt.
Public property IsActive
Check if the current task status is "active".
Public property IsComplete
Check if the current task status is "complete".
Public property IsEndPromptRegex
The start prompt regex flag.
Public property IsPending
Check if the current task status is "pending".
Public property IsRunning
Check if the current task status is "running".
Public property IsStartPromptRegex
The start prompt regex flag.
Public property IsTimedOut
Checks if the current task is timed out.
Public property Name
The task name.
Public property Response
The command response.
Public property Script
The task script.
Public property StartPrompt
The start prompt.
Public property Status
The task status.
Public property Terminator
The comand terminator.
Public property Timeout
The task timeout.

See Also