/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Transports/MessagePartitionKeyFormatter.cs
19 строк
525 B
Chris Patterson
Standardized the topology for partition key across service bus, event hub, and the SQL transport
25 апр 2024, 21:50
25 апр 2024, 21:50
e7c59ea
Код
Авторство
О чём код?
namespace MassTransit.Transports { public class MessagePartitionKeyFormatter<TMessage> : IMessagePartitionKeyFormatter<TMessage> where TMessage : class { readonly IPartitionKeyFormatter _formatter; public MessagePartitionKeyFormatter(IPartitionKeyFormatter formatter) { _formatter = formatter; } public string FormatPartitionKey(SendContext<TMessage> context) { return _formatter.FormatPartitionKey(context); } } }