public Task<bool> CheckUserInCardContextAsync(
Guid roleID,
string roleName,
string sqlTextForUser,
string sqlTextForCard,
Guid cardID,
Guid userID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = default
)
Public Function CheckUserInCardContextAsync (
roleID As Guid,
roleName As String,
sqlTextForUser As String,
sqlTextForCard As String,
cardID As Guid,
userID As Guid,
Optional useSafeTransaction As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
public:
virtual Task<bool>^ CheckUserInCardContextAsync(
Guid roleID,
String^ roleName,
String^ sqlTextForUser,
String^ sqlTextForCard,
Guid cardID,
Guid userID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CheckUserInCardContextAsync :
roleID : Guid *
roleName : string *
sqlTextForUser : string *
sqlTextForCard : string *
cardID : Guid *
userID : Guid *
?useSafeTransaction : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
override CheckUserInCardContextAsync :
roleID : Guid *
roleName : string *
sqlTextForUser : string *
sqlTextForCard : string *
cardID : Guid *
userID : Guid *
?useSafeTransaction : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
Текст SQL-запроса, возвращающего признак того, что заданный пользователь входит в состав контекстной роли для заданной карточки.
Значение обычно можно получить из свойства [Tessa.Roles.ContextRole.SqlTextForUser].