Skip to content

ProcessExitSettings

Settings for the process exit.

Properties

ProcessExitSettings Default

Default settings for the process exit.

ProcessExitSettings SilentExitOnSuccess

Settings for a silent exit on success.

ProcessExitSettings ManualExit

Settings to require user input to exit.

ProcessExitSettings AutomaticExit

Settings for automatic exit after a countdown.

bool ShowSuccessMessage

Show success message if the process exits successfully.

bool ShowFailedMessage

Show a failed message if the process exits with an error.

bool ShowSuggestHelp

Suggest help argument if the process exits with an error.

bool ForceExitCode0

Force the exit code to be 0 if the process exits with an error. This is useful if the application is used within a CI/CD pipeline where a failure of the application should not fail the pipeline.

bool AutoExit

Automatically exit the application after completion without user input. This is useful for running the application in a CI/CD pipeline, script or as a scheduled task.

uint ExitCountdownSeconds

Countdown to automatically exit after completion. This is useful if the application may be run manually as well as automatically, and the user may want to see the output before it closes.

Methods

ProcessExitSettings CreateAutomaticExit(uint countdownSeconds)

Settings for automatic exit after a countdown.

void SetInstance(ProcessExitSettings settings)

Sets the instance of the process exit settings.