Table of Contents

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 State

The current state (after the change)

previousState State

The previous state (before the change)

Returns

Task