AvatarContentPermissionsManagerCanEditAsync - метод

Checks whether the current user has permission to edit the avatar with the specified identifier id and kind kind.

Definition

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

Параметры

id  Guid
The identifier of the entity for that avatar access is being checked.
kind  AvatarContentKind
Kind of avatar content.
validationResult  IValidationResultBuilder  (Optional)
Объект, выполняющий построение результата валидации.
If provided, it will be used to record any validation errors.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTaskBoolean
if the permission check is successful; otherwise, .

Реализации

IAvatarContentPermissionsManagerCanEditAsync(Guid, AvatarContentKind, IValidationResultBuilder, CancellationToken)

См. также