The TelnetTask type exposes the following members.

Constructors

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

Methods

  Name Description
Public method Cancel
Cancels the current task and sets it's status to cancelled.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Execute
Executes command as defined in TelnetTask constructor.
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 GetResponse
Gets response to command executed.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsActive
Checks if this TelnetTask is active.
Public method IsCancelled
Checks if this TelnetTask was cancelled.
Public method IsComplete
Checks if this TelnetTask is complete due to sucessful completion, cancellation or exceeded timeout.
Public method IsPending
Checks if this TelnetTask is pending activation.
Public method IsRunning
Checks if this TelnetTask is running.
Public method IsTimedOut
Checks if this TelnetTask exceeded task timeout.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method OnTaskDataReceived
Gets data received from TELNET server.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public field Static member ACTIVE
TelnetTask is active and waiting for start prompt to execute command.
Public field Static member CANCELLED
TelnetTask was cancelled by user or due to a timeout.
Public field Static member COMPLETE
TelnetTask has finished execution of command and has received end prompt.
Public field Static member PENDING
TelnetTask is waiting to be activated.
Public field Static member RUNNING
TelnetTask has received start prompt and is currently executing command.
Public field Static member TIMEDOUT
TelnetTask exceeded maximum runtime timeout value.

Properties

  Name Description
Public property Command
Gets/Sets the TelnetTask command to execute.
Public property EndPrompt
Gets/Sets the shell end prompt this TelnetTask should wait for to indicate that this TelnetTask is complete.
Public property EndPromptRegex
Gets/Sets if the end prompt is a regular expression
Public property Name
Gets/Sets the name of this TelnetTask.
Public property NextTask
Gets/Sets the next task executed after this TelnetTask.
Public property PreviousTask
Gets/Sets the previous task executed before this TelnetTask.
Public property Script
Gets/Sets the TelnetScript that this TelnetTask is bound to.
Public property StartPrompt
Gets/Sets the shell start prompt this TelnetTask should wait for before executing command.
Public property StartPromptRegex
Gets/Sets if the start prompt is a regular expression.
Public property Status
Gets/Sets completion status of this TelnetTask.
Public property Terminator
Gets/Sets the command terminator used when sending commands to TELNET server. Default is "\n".
Public property Timeout
Gets/Sets the timeout in milliseconds for a running tasks to receive the expected end prompt. Default timeout is 120000ms (120 seconds).

See Also