REstate icon indicating copy to clipboard operation
REstate copied to clipboard

Add RetrieveOrCreateMachineAsync to IStateEngine`2

Open aidapsibr opened this issue 6 years ago • 1 comments

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 avatar Apr 04 '18 23:04 aidapsibr

This should be mirrored in INaturalStateMachine as well.

aidapsibr avatar Nov 19 '18 02:11 aidapsibr