OnEntry() and OnEntryFrom() events mot firing. How to debug

366 views
Skip to first unread message

Brett Bailey

unread,
Apr 23, 2013, 12:04:06 PM4/23/13
to dotnet-state-ma...@googlegroups.com
I'm trying to add OnEntry()  actions to my state machine.

For some reason they are not firing when the state transitions when I step through my code I can see that the statemachine transitions as expected.

I've not been able to isolate this issue into an example I can post so I am looking for some suggestions on how to debug the problem myself

Thanks

Brett Bailey

unread,
May 16, 2013, 11:00:46 AM5/16/13
to dotnet-state-ma...@googlegroups.com
I got to the bottom of this myself, I was using the new OnTransition event to persist state as I also need to store the trigger name.  

It seems that the OnTransistion event fires too late in the process for it to be used in this way as Stateless decides which OnEntry methods to call by calling back for the current state after the transition but before the OnTransition event fires.

~Brett
Reply all
Reply to author
Forward
0 new messages