| StateMachineGuardCallback Delegate |
Represents a method that will be called when a
Transition guard shall be executed.
Namespace: StaMaAssembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax public delegate bool StateMachineGuardCallback(
StateMachine stateMachine,
Object triggerEvent,
EventArgs eventArgs
)
Public Delegate Function StateMachineGuardCallback (
stateMachine As StateMachine,
triggerEvent As Object,
eventArgs As EventArgs
) As Boolean
public delegate bool StateMachineGuardCallback(
StateMachine^ stateMachine,
Object^ triggerEvent,
EventArgs^ eventArgs
)
type StateMachineGuardCallback =
delegate of
stateMachine : StateMachine *
triggerEvent : Object *
eventArgs : EventArgs -> bool
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:
Booleantrue if the
Transition shall be enabled; otherwise,
false.
See Also