/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Testing/IBaseTestHarness.cs
42 строки
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.Testing { using System; using System.Threading; using System.Threading.Tasks; public interface IBaseTestHarness { TimeSpan TestTimeout { get; set; } TimeSpan TestInactivityTimeout { get; set; } /// <summary> /// CancellationToken that is canceled when the test is being aborted /// </summary> CancellationToken CancellationToken { get; } /// <summary> /// CancellationToken that is cancelled when the test inactivity timeout has elapsed with no bus activity /// </summary> CancellationToken InactivityToken { get; } /// <summary> /// Task that is completed when the bus inactivity timeout has elapsed with no bus activity /// </summary> public Task InactivityTask { get; } IReceivedMessageList Consumed { get; } IPublishedMessageList Published { get; } ISentMessageList Sent { get; } /// <summary> /// Sets the <see cref="CancellationToken" />, canceling the test execution /// </summary> void Cancel(); /// <summary> /// Force the inactivity task to complete /// </summary> void ForceInactive(); } }