/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Caching/IPendingValue.cs
27 строк
908 B
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.Caching { using System.Threading.Tasks; /// <summary> /// A pending Get on an index, which has yet to be processed. Used by the /// node value factory to sequentially resolve the value for an index item /// which is then added to the cache. /// </summary> /// <typeparam name="TValue">The value type</typeparam> public interface IPendingValue<TValue> where TValue : class { /// <summary> /// Sets the pending value, eliminating the need for the factory method. /// </summary> /// <param name="value">The resolved value</param> void SetValue(Task<TValue> value); /// <summary> /// Create the value using the missing value factory supplied to Get /// </summary> /// <returns>Either the value, or a faulted task.</returns> Task<TValue> CreateValue(); } }