/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/SagaStateMachine/IStateObserver.cs
18 строк
672 B
Chris Patterson
Huge push towards optimization on startup, state machines, type discovery, caching, and the consume pipeline. Rebuilt the dispatch filter as a consume context filter for message type dispatch.
27 мар 2024, 02:43
27 мар 2024, 02:43
c17b1de
Код
Авторство
О чём код?
namespace MassTransit { using System.Threading.Tasks; public interface IStateObserver<TSaga> where TSaga : class, SagaStateMachineInstance { /// <summary> /// Invoked prior to changing the state of the state machine /// </summary> /// <param name="context">The instance context of the state machine</param> /// <param name="currentState">The current state (after the change)</param> /// <param name="previousState">The previous state (before the change)</param> /// <returns></returns> Task StateChanged(BehaviorContext<TSaga> context, State currentState, State previousState); } }