/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/IBusControl.cs
29 строк
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.Threading; using System.Threading.Tasks; public interface IBusControl : IBus { /// <summary> /// Starts the bus (assuming the battery isn't dead). Once the bus has been started it cannot be started again, even after it has been stopped. /// </summary> /// <returns> /// The BusHandle for the started bus. This is no longer needed, as calling Stop on the IBusControl will stop the bus equally well. /// </returns> Task<BusHandle> StartAsync(CancellationToken cancellationToken = default); /// <summary> /// Stops the bus if it has been started. If the bus hasn't been started, the method returns without any warning. /// </summary> Task StopAsync(CancellationToken cancellationToken = default); /// <summary> /// Returns the health of the bus, including all receive endpoints /// </summary> /// <returns></returns> BusHealthResult CheckHealth(); } }