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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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