/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/MassTransit.Tests/ServiceBusExtensions.cs
24 строки
792 B
Denys Kozhevnikov
Code cleanup. Remove copyrights
29 май 2020, 12:54
29 май 2020, 12:54
d017e8d
Код
Авторство
О чём код?
namespace MassTransit.Tests { using System; /// <summary> /// Extension methods pertinent to service bus logic, but on /// type <see cref="Type" /> - handles different sorts of reflection /// logic. /// </summary> public static class ServiceBusExtensions { /// <summary> /// Transforms the type of message to a normalized string which can be used /// for naming a queue on a transport. /// </summary> /// <param name="messageType">The message class/interface type</param> /// <returns>The normalized name for this type</returns> public static string ToMessageName(this Type messageType) { return MessageUrn.ForType(messageType).ToString(); } } }