TokenInMemoryCacheTKey, TValueTryGet(TKey, TValue) - метод

Attempts to retrieve the cache value associated with the specified key.

Definition

Пространство имён: Tessa.Tokens.Caching
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public virtual bool TryGet(
	TKey key,
	out TValue value
)

Параметры

key  TKey
The key used to retrieve the cache value.
value  TValue
The cache value if retrieval is successful; otherwise, .

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

Boolean
if the value was found; otherwise, .

Реализации

ITokenCacheTKey, TValueTryGet(TKey, TValue)

Заметки

This method will automatically trigger cleanup if necessary, before attempting to retrieve the value.

См. также