Interface IStateObserver<TSaga>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface IStateObserver<TSaga> where TSaga : class, ISaga
Type Parameters
TSaga
Methods
StateChanged(BehaviorContext<TSaga>, State, State)
Invoked prior to changing the state of the state machine
Task StateChanged(BehaviorContext<TSaga> context, State currentState, State previousState)
Parameters
contextBehaviorContext<TSaga>The instance context of the state machine
currentStateStateThe current state (after the change)
previousStateStateThe previous state (before the change)