Skip to content

ExitAction #98

Answered by daniele77
grbba asked this question in Q&A
Discussion options

You must be logged in to vote

The rationale for the exit actions is:

  • CliLocalTerminalSession exit action: it's called when the local session gets the "exit" command.
  • CliTelnetServer exit action: it's called whenever a remote session gets the "exit" command.
  • Cli exit action: it's called every time a session (local or remote) gets the "exit" command.

So, you can use CliLocalTerminalSession exit action to shutdown the application (when you type "exit" in the local console, I guess you want your application to close.

Instead, when a user types "exit" on a remote telnet console, I guess you don't want the main application to shutdown! Instead, you might close the tasks started from that remote session.

Finally, you can use

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by daniele77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants