/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/MessageData/MessageDataDefaults.cs
38 строк
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 System; public static class MessageDataDefaults { static MessageDataDefaults() { AlwaysWriteToRepository = true; Threshold = 4096; } /// <summary> /// Transitional, will always write to the repository but will include inline to avoid reading on /// current framework clients. If all services are upgraded, set to false so that data sizes below /// the threshold are not written to the repository. /// </summary> public static bool AlwaysWriteToRepository { get; set; } /// <summary> /// Set the threshold for automatic message data to be written to the repository, vs stored inline. /// </summary> public static int Threshold { get; set; } /// <summary> /// Set the default time to live for message data when no expiration is specified /// </summary> public static TimeSpan? TimeToLive { get; set; } /// <summary> /// Set an extra time to live for message data, which is added to inferred expiration based upon /// SendContext TimeToLive. /// </summary> public static TimeSpan? ExtraTimeToLive { get; set; } } }