/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/SagaStateMachine/UnhandledEventContext.cs
30 строк
785 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; /// <summary> /// The context of an unhandled event in the state machine /// </summary> /// <typeparam name="TSaga"></typeparam> public interface UnhandledEventContext<TSaga> : BehaviorContext<TSaga> where TSaga : class, SagaStateMachineInstance { /// <summary> /// The current state of the state machine /// </summary> State CurrentState { get; } /// <summary> /// Returns a Task that ignores the unhandled event /// </summary> Task Ignore(); /// <summary> /// Returns a thrown exception task for the unhandled event /// </summary> /// <returns></returns> Task Throw(); } }