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