/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.TestFramework/Courier/SetVariableActivity.cs
18 строк
611 B
Chris Patterson
Fixed #3532 - arguments/log/variables should be compared case insensitive, and not replaced by null.
21 июл 2022, 04:29
21 июл 2022, 04:29
0f0b96a
Код
Авторство
О чём код?
namespace MassTransit.TestFramework.Courier { using System.Collections.Generic; using System.Threading.Tasks; public class SetVariableActivity : IExecuteActivity<SetVariableArguments> { public async Task<ExecutionResult> Execute(ExecuteContext<SetVariableArguments> context) { if (context.Arguments == null) throw new RoutingSlipException("The arguments for execution were null"); return context.CompletedWithVariables(new Dictionary<string, object> { { context.Arguments.Key, context.Arguments.Value } }); } } }