/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Configuration/BindConfigurationExtensions.cs
26 строк
896 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 BindConfigurationExtensions { /// <summary> /// Adds a filter to the pipe which is of a different type than the native pipe context type /// </summary> /// <typeparam name="TLeft">The context type</typeparam> /// <param name="configurator">The pipe configurator</param> /// <param name="configure"></param> public static void UseBind<TLeft>(this IPipeConfigurator<TLeft> configurator, Action<IBindConfigurator<TLeft>> configure) where TLeft : class, PipeContext { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); var bindConfigurator = new BindConfigurator<TLeft>(configurator); configure?.Invoke(bindConfigurator); } } }