The TelnetTask type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
TelnetTask(String, String, String) |
Creates a new TelnetTask instance.
|
![]() |
TelnetTask(String, String, String, String) |
Creates a new TelnetTask instance.
|
Methods
Name | Description | |
---|---|---|
![]() |
Cancel |
Cancels the current task and sets it's status to cancelled.
|
![]() |
Equals | (Inherited from Object.) |
![]() |
Execute |
Executes command as defined in TelnetTask constructor.
|
![]() |
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.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetResponse |
Gets response to command executed.
|
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
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.
|
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
OnTaskDataReceived |
Gets data received from TELNET server.
|
![]() |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() |
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.
|
Properties
Name | Description | |
---|---|---|
![]() |
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).
|