dotnet-state-machine / stateless

A simple library for creating state machines in C# code
Other
5.6k stars 766 forks source link

Expose superstate #463

Closed riezebosch closed 1 year ago

riezebosch commented 3 years ago

Is it possible to store the substate internally to distinguish between permitted triggers but expose the superstate to the outside world?

In my example, I distinguish between LockedOutForEmail and LockedOutForPhone but both are substates of Locked and that's what I want to communicate with my consumers.