Click or drag to resize

ShutdownHandler Class

This class will monitor the state to the application and raise events when it detects that the application is about to shutdown.
Inheritance Hierarchy
SystemObject
  GSF.ThreadingShutdownHandler

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static class ShutdownHandler
View Source

The ShutdownHandler type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberHasShutdown Gets if this process has already shut down.
Public propertyStatic memberIsShuttingDown Gets if this process is shutting down.
Top
Methods
 NameDescription
Public methodStatic memberInitialize Initializes the shutdown handler. This is recommended to put in main loop of the program, but it is not critical.
Public methodStatic memberInitiateSafeShutdown Requests that certain components initiate a safe shutdown.
Public methodStatic memberTryRegisterCallback Attempts Registers a callback that will be called when the application is shutdown.
Top
See Also