Click or drag to resize

KubeServiceExit Method

Used by services to stop themselves, specifying an optional process exit code.

Namespace:  Neon.Kube.Service
Assembly:  Neon.Kube.Service (in Neon.Kube.Service.dll) Version: 2.1.0
Syntax
public virtual void Exit(
	int exitCode = 0
)

Parameters

exitCode (Optional)
Type: SystemInt32
The optional exit code (defaults to 0).
Remarks
This works by setting ExitCode if exitCode is non-zero, signalling process termination on another thread and then throwing a ProgramExitException on the current thread. This will generally cause the current thread or task to terminate immediately and any other properly implemented threads and tasks to terminate gracefully when they receive the termination signal.
See Also