/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Configuration/IBindConfigurator.cs
35 строк
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 { using System; public interface IBindConfigurator<TLeft> where TLeft : class, PipeContext { /// <summary> /// Specifies a pipe context source which is used to create the PipeContext bound to the BindContext. /// </summary> /// <param name="source"></param> /// <param name="configureTarget"></param> /// <typeparam name="T"></typeparam> void Source<T>(IPipeContextSource<T, TLeft> source, Action<IBindConfigurator<TLeft, T>> configureTarget) where T : class, PipeContext; } /// <summary> /// Configures a binding using the specified pipe context source /// </summary> /// <typeparam name="TLeft"></typeparam> /// <typeparam name="TRight"></typeparam> public interface IBindConfigurator<TLeft, TRight> : IPipeConfigurator<BindContext<TLeft, TRight>> where TRight : class, PipeContext where TLeft : class, PipeContext { /// <summary> /// Configure a filter on the context pipe, versus the bound pipe /// </summary> IPipeConfigurator<TLeft> ContextPipe { get; } } }