Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Event and State properties with the StateMachine using Reflection #16

Closed
wants to merge 7 commits into from

Conversation

chrisblock
Copy link
Contributor

This change will automatically register State and Event properties of state machines that extend the AutomatonymousStateMachine<> class, removing the need for the implementor to manually do so. This part of creating the state machine seemed cumbersome, so I thought to remove that little bit of friction.

Please note this changes the interface for this type; the individual methods to register states and events were removed, and the method to register a composable event was altered.

@phatboyg
Copy link
Member

phatboyg commented Mar 7, 2015

This is now in the MT3 branch, all states and events are implicitly registered, and can be overridden by explicitly declaring substates, and composite event states.

@phatboyg phatboyg closed this Mar 7, 2015
@phatboyg
Copy link
Member

phatboyg commented Mar 7, 2015

Picked the unit tests onto the new mt3 branch.

@phatboyg
Copy link
Member

phatboyg commented Mar 7, 2015

The 3.0.3-beta version (on NuGet) has the implicit initialization of events and states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants