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
context
BehaviorContext<TSaga>The instance context of the state machine
currentState
StateThe current state (after the change)
previousState
StateThe previous state (before the change)