AvatarGeneratedContentRepositoryTryGetContentAsync - метод
Retrieves the avatar content for the entity identified by id and kind.
Пространство имён: Tessa.Content.AvatarsСборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
public virtual Task<ContentResult?> TryGetContentAsync(
Guid id,
AvatarContentKind kind,
CancellationToken cancellationToken = default
)
Public Overridable Function TryGetContentAsync (
id As Guid,
kind As AvatarContentKind,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ContentResult)
public:
virtual Task<ContentResult^>^ TryGetContentAsync(
Guid id,
AvatarContentKind kind,
CancellationToken cancellationToken = CancellationToken()
)
abstract TryGetContentAsync :
id : Guid *
kind : AvatarContentKind *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ContentResult>
override TryGetContentAsync :
id : Guid *
kind : AvatarContentKind *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ContentResult>
- 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.
TaskContentResult
The generated avatar content for the entity identified by
id and
kind,
or
if the content has not been saved yet.
IAvatarGeneratedContentRepositoryTryGetContentAsync(Guid, AvatarContentKind, CancellationToken)