/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/InVar.cs
31 строка
1 KB
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 Initializers.Variables; /// <summary> /// Variables, which can be used for message initialization /// </summary> public static class InVar { /// <summary> /// Generates the current timestamp, in UTC, which can be used to initialize properties /// in the message with a consistent value /// </summary> public static TimestampVariable Timestamp => new TimestampVariable(); /// <summary> /// Generates a new identifier, and maintains that identifier for the entire message initializer lifetime, /// so that subsequent uses of the identifier return the same value. There are multiple aliases for the same /// identifier, so that property names are automatically inferred (Id, CorrelationId, etc.). /// </summary> public static IdVariable Id => new IdVariable(); /// <summary> /// Generates a new identifier, and maintains that identifier for the entire message initializer lifetime, /// so that subsequent uses of the identifier return the same value. There are multiple aliases for the same /// identifier, so that property names are automatically inferred (Id, CorrelationId, etc.). /// </summary> public static IdVariable CorrelationId => new IdVariable(); } }