/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Configuration/ForkConfigurationExtensions.cs
26 строк
867 B
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 { using System; using Configuration; public static class ForkConfigurationExtensions { /// <summary> /// Adds a fork to the pipe, which invokes a separate pipe concurrently with the current pipe /// </summary> /// <typeparam name="T">The context type</typeparam> /// <param name="configurator">The pipe configurator</param> /// <param name="pipe">The filter to add</param> public static void UseFork<T>(this IPipeConfigurator<T> configurator, IPipe<T> pipe) where T : class, PipeContext { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); var specification = new ForkPipeSpecification<T>(pipe); configurator.AddPipeSpecification(specification); } } }