Click or drag to resize
StaMaStateMachineTraceDispatchTriggerEvent Property
Gets or sets a callback that can be used for tracing the StateMachine operation.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public StateMachineTraceDispatchTriggerEventEventHandler TraceDispatchTriggerEvent { get; set; }

Property Value

Type: StateMachineTraceDispatchTriggerEventEventHandler
Remarks
The delegate will be called whenever the event queue dispatches an event to the state machine.

The StateMachine passes the following parameters to the callback:

  1. The StateMachine instance that dispatches the event.
  2. The Object that represents the trigger event that was sent to the state machine.
  3. The EventArgs instance that carries additional parameters accompanying the trigger event.

The intended purpose of this callback is purely for tracing or analysis purposes. The callback is expected to not interfere with the state machine excution. Actions within a state machine shall solely be executed through the EntryAction, ExitAction and TransitionAction.

See Also