/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Contexts/CompensateContext.cs
62 строки
2 KB
Chris Patterson
Added IRoutingSlipBuilder, which is now registered in the container, so that a routing slip can be built and executed from the Abstractions assembly only.
18 фев 2022, 00:54
18 фев 2022, 00:54
e2d61b6
Код
Авторство
О чём код?
namespace MassTransit { using System; using System.Collections.Generic; public interface CompensateContext : CourierContext { /// <summary> /// Set the compensation result, which completes the activity /// </summary> CompensationResult Result { get; set; } /// <summary> /// The compensation was successful /// </summary> /// <returns></returns> CompensationResult Compensated(); /// <summary> /// The compensation was successful /// </summary> /// <param name="values">The variables to be updated on the routing slip</param> /// <returns></returns> CompensationResult Compensated(object values); /// <summary> /// The compensation was successful /// </summary> /// <param name="variables">The variables to be updated on the routing slip</param> /// <returns></returns> CompensationResult Compensated(IDictionary<string, object> variables); /// <summary> /// The compensation failed /// </summary> /// <returns></returns> CompensationResult Failed(); /// <summary> /// The compensation failed with the specified exception /// </summary> /// <param name="exception"></param> /// <returns></returns> CompensationResult Failed(Exception exception); } public interface CompensateContext<out TLog> : CompensateContext where TLog : class { /// <summary> /// The execution log from the activity execution /// </summary> TLog Log { get; } CompensateActivityContext<TActivity, TLog> CreateActivityContext<TActivity>(TActivity activity) where TActivity : class, ICompensateActivity<TLog>; } }