/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Clients/RequestHandle.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 { using System; using System.Threading.Tasks; /// <summary> /// A request handle manages the client-side request, and allows the request to be configured, response types added, etc. The handle /// should be disposed once it is no longer in-use, and the request has been completed (successfully, or otherwise). /// </summary> /// <typeparam name="TRequest">The request type</typeparam> public interface RequestHandle<TRequest> : RequestHandle, IRequestPipeConfigurator<TRequest> where TRequest : class { /// <summary> /// The request message that was/will be sent. /// </summary> Task<TRequest> Message { get; } } public interface RequestHandle : IRequestPipeConfigurator, IDisposable { /// <summary> /// If the specified result type is present, it is returned. /// </summary> /// <param name="readyToSend">If true, sets the request as ready to send and sends it</param> /// <typeparam name="T">The result type</typeparam> /// <returns>True if the result type specified is present, otherwise false</returns> Task<Response<T>> GetResponse<T>(bool readyToSend = true) where T : class; /// <summary> /// Cancel the request /// </summary> void Cancel(); } }