/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Diagnostics/ProbeContextExtensions.cs
30 строк
883 B
denys.kozhevnikov
Cleanup using
25 янв 2023, 22:00
25 янв 2023, 22:00
15c3b8b
Код
Авторство
О чём код?
namespace MassTransit { public static class ProbeContextExtensions { public static ProbeContext CreateFilterScope(this ProbeContext context, string filterType) { var scope = context.CreateScope("filters"); scope.Add("filterType", filterType); return scope; } public static ProbeContext CreateConsumerFactoryScope<TConsumer>(this ProbeContext context, string source) { var scope = context.CreateScope("consumerFactory"); scope.Add("source", source); scope.Add("consumerType", TypeCache<TConsumer>.ShortName); return scope; } public static ProbeContext CreateMessageScope(this ProbeContext context, string messageType) { var scope = context.CreateScope(messageType); return scope; } } }