ShutdownHandler Class

This class will monitor the state to the application and raise events when it detects that the application is about to shut down.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.169 -- Release Build+7697c0e717c25635c63b5dbfba5523a6bec4ec9b
public static class ShutdownHandler
Inheritance
Object    ShutdownHandler

Remarks

This class is duplicated here from the Gemstone.Diagnostics project as an internal class to avoid a circular dependency.

Properties

HasShutdown Gets if this process has already shut down.
IsShuttingDown Gets if this process is shutting down.

Methods

Initialize Initializes the shutdown handler. This is recommended to put in main loop of the program, but it is not critical.
InitiateSafeShutdown Requests that certain components initiate a safe shutdown.
TryRegisterCallback Attempts Registers a callback that will be called when the application is shutdown.

See Also