Click or drag to resize
StaMaStateMachineGuardCallback Delegate
Represents a method that will be called when a Transition guard shall be executed.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public delegate bool StateMachineGuardCallback(
	StateMachine stateMachine,
	Object triggerEvent,
	EventArgs eventArgs
)

Parameters

stateMachine
Type: StaMaStateMachine
The StateMachine instance that requests invocation of the method.
triggerEvent
Type: SystemObject
An Object that represents the trigger event that was sent to the state machine.
eventArgs
Type: Microsoft.SPOTEventArgs
An EventArgs instance that carries additional parameters accompanying the trigger event.

Return Value

Type: Boolean
true if the Transition shall be enabled; otherwise, false.
See Also