ShutdownHandlerTryRegisterCallback Method

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

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.160 -- Release Build+5c02decbb6aa321138caaadf548ee87ad464d811
public static bool TryRegisterCallback(
	Action callback,
	ShutdownHandlerOrder shutdownOrder = ShutdownHandlerOrder.Default
)

Parameters

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

Return Value

Boolean

[Missing <returns> documentation for "M:Gemstone.Threading.ShutdownHandler.TryRegisterCallback(System.Action,Gemstone.Threading.ShutdownHandlerOrder)"]

See Also