/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/IConsumer.cs
30 строк
899 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> /// Defines a class that is a consumer of a message. The message is wrapped in an IConsumeContext /// interface to allow access to details surrounding the inbound message, including headers. /// </summary> /// <typeparam name="TMessage">The message type</typeparam> public interface IConsumer<in TMessage> : IConsumer where TMessage : class { Task Consume(ConsumeContext<TMessage> context); } /// <summary> /// Marker interface used to assist identification in IoC containers. /// Not to be used directly as it does not contain the message type of the /// consumer /// </summary> /// <remarks> /// Not to be used directly by application code, for internal reflection only /// </remarks> public interface IConsumer { } }