/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Middleware/DiscardDeadLetterFilter.cs
22 строки
542 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.Middleware { using System.Threading.Tasks; /// <summary> /// Simply ignores/discards the not-consumed message /// </summary> public class DiscardDeadLetterFilter : IFilter<ReceiveContext> { void IProbeSite.Probe(ProbeContext context) { context.CreateFilterScope("discard-dead-letter"); } Task IFilter<ReceiveContext>.Send(ReceiveContext context, IPipe<ReceiveContext> next) { return next.Send(context); } } }