public static Task<List<RoleUserRecord>> GetCardContextUsersAsync(
this IRoleRepository repository,
ContextRole role,
Guid cardID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function GetCardContextUsersAsync (
repository As IRoleRepository,
role As ContextRole,
cardID As Guid,
Optional useSafeTransaction As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of List(Of RoleUserRecord))
public:
[ExtensionAttribute]
static Task<List<RoleUserRecord^>^>^ GetCardContextUsersAsync(
IRoleRepository^ repository,
ContextRole^ role,
Guid cardID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member GetCardContextUsersAsync :
repository : IRoleRepository *
role : ContextRole *
cardID : Guid *
?useSafeTransaction : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<List<RoleUserRecord>>
Состав контекстной роли.
У каждого объекта заполнено свойство UserID и может быть заполнено свойство UserName, если SQL-запрос контекстной роли role возвращает и идентификатор, и имя пользователя.