RoleHelperIsAdminUserAsync(IDbScope, Card, CancellationToken) - метод
Метод возвращает true, если сотрудник, описанный данной карточкой является админом, иначе false
Пространство имён: Tessa.RolesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static ValueTask<bool> IsAdminUserAsync(
IDbScope dbScope,
Card userCard,
CancellationToken cancellationToken = default
)
Public Shared Function IsAdminUserAsync (
dbScope As IDbScope,
userCard As Card,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of Boolean)
public:
static ValueTask<bool> IsAdminUserAsync(
IDbScope^ dbScope,
Card^ userCard,
CancellationToken cancellationToken = CancellationToken()
)
static member IsAdminUserAsync :
dbScope : IDbScope *
userCard : Card *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<bool>
- dbScope IDbScope
-
- userCard Card
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskBoolean