AvatarGeneratedContentCacheTryGetAsync - метод

Retrieves the avatar content for the entity identified by id and avatar kind from the cache, if it has been stored there.

Definition

Пространство имён: Tessa.Content.Avatars
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public virtual ValueTask<AvatarGeneratedContentResult> TryGetAsync(
	Guid id,
	AvatarContentKind kind,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
The identifier of the entity for that avatar content is to be retrieved.
kind  AvatarContentKind
Kind of avatar content.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTaskAvatarGeneratedContentResult
The avatar content for the entity identified by id and kind, or if the content is not found in the cache.

Реализации

IAvatarGeneratedContentCacheTryGetAsync(Guid, AvatarContentKind, CancellationToken)

См. также