/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/MessageData/IMessageDataRepository.cs
33 строки
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.IO; using System.Threading; using System.Threading.Tasks; /// <summary> /// Storage of large message data that can be stored and retrieved separate of the message body. /// Implemented as a claim-check pattern when an identifier is stored in the message body which /// is used to retrieve the message data separately. /// </summary> public interface IMessageDataRepository { /// <summary> /// Returns a stream to read the message data for the specified address. /// </summary> /// <param name="address">The data address</param> /// <param name="cancellationToken">A cancellation token for the request</param> /// <returns></returns> Task<Stream> Get(Uri address, CancellationToken cancellationToken = default); /// <summary> /// Puts message data into the repository /// </summary> /// <param name="stream">The stream of data for the message</param> /// <param name="timeToLive"></param> /// <param name="cancellationToken"></param> /// <returns></returns> Task<Uri> Put(Stream stream, TimeSpan? timeToLive = default, CancellationToken cancellationToken = default); } }