Table of Contents

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 State

The current state (after the change)

previousState State

The previous state (before the change)

Returns

Task