-
Notifications
You must be signed in to change notification settings - Fork 129
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
A call to Load should notify extensions for Initializing, Initialized and SwitchedState #21
Comments
Thanks for your message. |
I'm arguing with myself whether the state machine should call The reason is that the state machine does not really initialize itself, nor does it switch a state. It is loaded. @djack42 would a |
Thank you very much for taking the time. I like the idea of a new extension method There could be a problem with the |
Okay, I'll add the There are other problems with the loading mechanism that I found, e.g. loading a non-initialized state machine sets it to initialized without an active state :-O |
Thank you |
@djack42 can you please try the pre-release package here and report back whether this fixes your issues? Thanks. |
I tried, But to properly initialize my extension, the
If both were to be implemented, I think i'd be enough. |
partially fixed in #24 which is on master and available as a pre-release package. |
thank you. |
Hi,
I'm using your StateMachine implementation with extensions and I have a couple of problems :
The StateMachine does not notify at all the extensions at Load()
the initialized flag is set to true but InitializingStateMachine or InitializedStateMachine aren't called on extensions.
A call to LoadCurrentState() set the backing field currentState instead of the Property CurrentState, SwitchedState is never called on extensions.
Please, can you fix this behavior and update the nuget package ?
The text was updated successfully, but these errors were encountered: