Interface StateObserver<TInstance>
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
public interface StateObserver<in TInstance>
Type Parameters
TInstance
Methods
StateChanged(InstanceContext<TInstance>, State, State)
Invoked prior to changing the state of the state machine
Task StateChanged(InstanceContext<in TInstance> context, State currentState, State previousState)
Parameters
context
InstanceContext<TInstance>The instance context of the state machine
currentState
StateThe current state (after the change)
previousState
StateThe previous state (before the change)