How do I execute an Action on a transition? #601
Unanswered
arscroggin
asked this question in
Q&A
Replies: 1 comment
-
Use OnEntry on the destination state or OnExit on the origin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do I execute an action on a transition from state A to state B? Something like this:
stateMachine.Configure(State.A)
.Permit(Trigger.MyTrigger, State.B, DoAction()
It seems though you can only specify a Trigger and the Destination State.
Am I missing something? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions