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.276-beta+3dd4b43be3e31323696af3ab6b14b705e6420d69
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