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

Add RetrieveOrCreateMachineAsync to IStateEngine`2 #43

Open
aidapsibr opened this issue Apr 4, 2018 · 1 comment
Open

Add RetrieveOrCreateMachineAsync to IStateEngine`2 #43

aidapsibr opened this issue Apr 4, 2018 · 1 comment

Comments

@aidapsibr
Copy link
Contributor

It is difficult to handle the case where a caller may need to either retrieve the machine or create it if it does not already exist. Currently it involves no less than 2 try catch blocks for an end consumer to ensure they successfully get a machine.

@aidapsibr
Copy link
Contributor Author

This should be mirrored in INaturalStateMachine as well.

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

No branches or pull requests

1 participant