/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/SagaStateMachine/BehaviorExceptionContext.cs
53 строки
2 KB
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; /// <summary> /// An exceptional behavior context /// </summary> /// <typeparam name="TSaga"></typeparam> /// <typeparam name="TException"></typeparam> public interface BehaviorExceptionContext<TSaga, out TException> : BehaviorContext<TSaga> where TException : Exception where TSaga : class, SagaStateMachineInstance { TException Exception { get; } /// <summary> /// Return a proxy of the current behavior context with the specified event and data /// </summary> /// <typeparam name="T">The data type</typeparam> /// <param name="event">The event for the new context</param> /// <param name="data">The data for the event</param> /// <returns></returns> new BehaviorExceptionContext<TSaga, T, TException> CreateProxy<T>(Event<T> @event, T data) where T : class; } /// <summary> /// An exceptional behavior context /// </summary> /// <typeparam name="TSaga"></typeparam> /// <typeparam name="TMessage"></typeparam> /// <typeparam name="TException"></typeparam> public interface BehaviorExceptionContext<TSaga, out TMessage, out TException> : BehaviorContext<TSaga, TMessage>, BehaviorExceptionContext<TSaga, TException> where TException : Exception where TSaga : class, SagaStateMachineInstance where TMessage : class { /// <summary> /// Return a proxy of the current behavior context with the specified event and data /// </summary> /// <typeparam name="T">The data type</typeparam> /// <param name="event">The event for the new context</param> /// <param name="data">The data for the event</param> /// <returns></returns> new BehaviorExceptionContext<TSaga, T, TException> CreateProxy<T>(Event<T> @event, T data) where T : class; } }