Telnet Factory for .NET

TelnetSession.SessionTimeout Property

Gets/Sets the TelnetSession timeout in milliseconds for all running tasks to complete. Default timeout is 120000ms (120 seconds).

public long SessionTimeout {get; set;}

Remarks

The TelnetSession timeout value is used to determine when tasks should abort if not completed within the specified timeout. The value is applied globally to each task. Timeout for more information about setting the timeout property for a specific task.

Example

This example sets the TelnetSession timeout value to 6 seconds for all tasks assigned to this session.

[CS]
// Set default session timeout to 6 seconds
session.SessionTimeout = 6000;

[Visual Basic]
' Set default session timeout to 6 seconds
session.SessionTimeout = 6000

See Also

TelnetSession Class | Jscape.Telnet Namespace