Click or drag to resize
StaMaStateMachineSendTriggerEvent Method (Object)
Enqueues a trigger event and starts processing the state machine, if not already inside a processing. As a result a transition may be executed by invoking exit actions, changing the active state and invoking entry actions.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public int SendTriggerEvent(
	Object triggerEvent
)

Parameters

triggerEvent
Type: SystemObject
An Object that represents the trigger event that is sent to the state machine or null to trigger the evaluation of transitions having an "any" event. The Object will be compared using Equals(Object) to the value of the TriggerEvent property of the active Transition instances.

Return Value

Type: Int32
The number of executed state machine steps.
See Also