ITokenCacheTKey, TValueTryUpdate - метод

Attempts to update the cache value that matches the specified condition.

Definition

Пространство имён: Tessa.Tokens.Caching
Сборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
C#
bool TryUpdate(
	Func<TKey, TValue, bool> predicate,
	TValue value
)

Параметры

predicate  FuncTKey, TValue, Boolean
A function to test each cache entry.
value  TValue
The cache value to update.

Возвращаемое значение

Boolean
if the value was successfully updated; otherwise, .

См. также