LongSynchronizedOperation(ActionCancellationToken, ActionException) Constructor

Creates a new instance of the LongSynchronizedOperation class.

Definition

Namespace: Gemstone.Threading.SynchronizedOperations
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.169 -- Release Build+7345f63a8c9771f20dc280b192df2ccb62049660
public LongSynchronizedOperation(
	Action<CancellationToken> action,
	Action<Exception>? exceptionAction
)

Parameters

action  ActionCancellationToken
The action to be performed during this operation.
exceptionAction  ActionException
The cancellable action to be performed if an exception is thrown from the action.

Remarks

Cancellable synchronized operation is useful in cases where actions should be terminated during dispose and/or shutdown operations.

See Also