Click or drag to resize

ShutdownHandlerTryRegisterCallback Method

Attempts Registers a callback that will be called when the application is shutdown.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static bool TryRegisterCallback(
	Action callback,
	ShutdownHandlerOrder shutdownOrder = ShutdownHandlerOrder.Default
)
View Source

Parameters

callback  Action
the callback when the shutdown occurs
shutdownOrder  ShutdownHandlerOrder  (Optional)
the order that the callback will occur.

Return Value

Boolean
See Also