/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/IConsumerFactory.cs
19 строк
727 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.Threading.Tasks; /// <summary> /// Maps an instance of a consumer to one or more Consume methods for the specified message type /// The whole purpose for this interface is to allow the creator of the consumer to manage the lifecycle /// of the consumer, along with anything else that needs to be managed by the factory, container, etc. /// </summary> /// <typeparam name="TConsumer">The Consumer type</typeparam> public interface IConsumerFactory<out TConsumer> : IProbeSite where TConsumer : class { Task Send<T>(ConsumeContext<T> context, IPipe<ConsumerConsumeContext<TConsumer, T>> next) where T : class; } }