![]() ACTIVE | TelnetTask is active and waiting for start prompt to execute command. |
![]() CANCELLED | TelnetTask was cancelled by user or due to a timeout. |
![]() COMPLETE | TelnetTask has finished execution of command and has received end prompt. |
![]() PENDING | TelnetTask is waiting to be activated. |
![]() RUNNING | TelnetTask has received start prompt and is currently executing command. |
![]() TIMEDOUT | TelnetTask exceeded maximum runtime timeout value. |
TelnetTask
|
Overloaded. Initializes a new instance of the TelnetTask class. |
Command | Gets/Sets the TelnetTask command to execute. |
EndPrompt | Gets/Sets the shell end prompt this TelnetTask should wait for to indicate that this TelnetTask is complete. |
EndPromptRegex | Gets/Sets if the end prompt is a regular expression |
Name | Gets/Sets the name of this TelnetTask. |
NextTask | Gets/Sets the next task executed after this TelnetTask. |
PreviousTask | Gets/Sets the previous task executed before this TelnetTask. |
Script | Gets/Sets the TelnetScript that this TelnetTask is bound to. |
StartPrompt | Gets/Sets the shell start prompt this TelnetTask should wait for before executing command. |
StartPromptRegex | Gets/Sets if the start prompt is a regular expression. |
Status | Gets/Sets completion status of this TelnetTask. |
Terminator | Gets/Sets the command terminator used when sending commands to TELNET server. Default is "\n". |
Timeout | Gets/Sets the timeout in milliseconds for a running tasks to receive the expected end prompt. Default timeout is 120000ms (120 seconds). |
Cancel | Cancels the current task and sets it's status to cancelled. |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
Execute | Executes command as defined in TelnetTask constructor. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
GetResponse | Gets response to command executed. |
GetType (inherited from Object) | Gets the Type of the current instance. |
IsActive | Checks if this TelnetTask is active. |
IsCancelled | Checks if this TelnetTask was cancelled. |
IsComplete | Checks if this TelnetTask is complete due to sucessful completion, cancellation or exceeded timeout. |
IsPending | Checks if this TelnetTask is pending activation. |
IsRunning | Checks if this TelnetTask is running. |
IsTimedOut | Checks if this TelnetTask exceeded task timeout. |
OnTaskDataReceived | Gets data received from TELNET server. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
TelnetTask Class | Jscape.Telnet Namespace