/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/SagaStateMachine/IStateMachineActivitySelector.cs
36 строк
1 KB
Chris Patterson
Integration of all external packages into MassTransit, split out into Abstractions, Middleware, and the core MassTransit assembly.
22 янв 2022, 18:24
22 янв 2022, 18:24
b5b4f50
Код
Авторство
О чём код?
namespace MassTransit { public interface IStateMachineActivitySelector<TInstance, TData> where TInstance : class, SagaStateMachineInstance where TData : class { /// <summary> /// An activity which accepts the instance and data from the event /// </summary> /// <typeparam name="TActivity"></typeparam> /// <returns></returns> EventActivityBinder<TInstance, TData> OfType<TActivity>() where TActivity : class, IStateMachineActivity<TInstance, TData>; /// <summary> /// An activity that only accepts the instance, and does not require the event data /// </summary> /// <typeparam name="TActivity"></typeparam> /// <returns></returns> EventActivityBinder<TInstance, TData> OfInstanceType<TActivity>() where TActivity : class, IStateMachineActivity<TInstance>; } public interface IStateMachineActivitySelector<TInstance> where TInstance : class, SagaStateMachineInstance { /// <summary> /// An activity which accepts the instance and data from the event /// </summary> /// <typeparam name="TActivity"></typeparam> /// <returns></returns> EventActivityBinder<TInstance> OfType<TActivity>() where TActivity : class, IStateMachineActivity<TInstance>; } }