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.307-beta+9737fd9b0b4f87709e68c099d312e6b151025dc8
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