/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Configuration/MassTransitHostOptions.cs
33 строки
1 KB
denys.kozhevnikov
Use new ConsumerStopTimeout
27 фев 2023, 22:20
27 фев 2023, 22:20
2f6bf7f
Код
Авторство
О чём код?
namespace MassTransit { using System; /// <summary> /// If present in the container, these options will be used by the MassTransit hosted service. /// </summary> public class MassTransitHostOptions { /// <summary> /// If True, the hosted service will not return from StartAsync until the bus has started. /// </summary> public bool WaitUntilStarted { get; set; } /// <summary> /// If specified, the timeout will be used with StartAsync to cancel if the timeout is reached /// </summary> public TimeSpan? StartTimeout { get; set; } /// <summary> /// If specified, the timeout will be used with StopAsync to cancel if the timeout is reached. /// The bus is still stopped, only the wait is canceled. /// </summary> public TimeSpan? StopTimeout { get; set; } /// <summary> /// If specified, the timeout will be used to wait for Consumers to complete their work /// After this timeout ConsumeContext.CancellationToken will be cancelled <seealso cref="PipeContext.CancellationToken"/> /// </summary> public TimeSpan? ConsumerStopTimeout { get; set; } } }