Method | Description | |
---|---|---|
Initialize ( ) : void |
Initializes the shutdown handler. This is recommended to put in main loop of the program, but it is not critical.
|
|
TryRegisterCallback ( System.Action callback, ShutdownHandlerOrder shutdownOrder = ShutdownHandlerOrder.Default ) : bool |
Attempts Registers a callback that will be called when the application is shutdown.
|
Method | Description | |
---|---|---|
InitiateSafeShutdown ( ) : void | ||
InitiateSafeShutdown ( object sender, |
||
ShutdownHandler ( ) : System |
public static TryRegisterCallback ( System.Action callback, ShutdownHandlerOrder shutdownOrder = ShutdownHandlerOrder.Default ) : bool | ||
callback | System.Action | the callback when the shutdown occurs |
shutdownOrder | ShutdownHandlerOrder | the order that the callback will occur. |
return | bool |