ICardTaskAccessProviderCheckAccessAsync(Card, CardTask, CardType, IDbScope, ISession, IValidationResultBuilder, CardServiceType, ListCardMetadataFunctionRole, ICardExtensionContext, CancellationToken) - метод
Метод для проверки прав доступа на изменение карточки задания.
Пространство имён: Tessa.CardsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
Task<bool> CheckAccessAsync(
Card card,
CardTask task,
CardType taskType,
IDbScope dbScope,
ISession session,
IValidationResultBuilder validationResult,
CardServiceType serviceType,
List<CardMetadataFunctionRole> functionRoles,
ICardExtensionContext? context = null,
CancellationToken cancellationToken = default
)
Function CheckAccessAsync (
card As Card,
task As CardTask,
taskType As CardType,
dbScope As IDbScope,
session As ISession,
validationResult As IValidationResultBuilder,
serviceType As CardServiceType,
functionRoles As List(Of CardMetadataFunctionRole),
Optional context As ICardExtensionContext = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
Task<bool>^ CheckAccessAsync(
Card^ card,
CardTask^ task,
CardType^ taskType,
IDbScope^ dbScope,
ISession^ session,
IValidationResultBuilder^ validationResult,
CardServiceType serviceType,
List<CardMetadataFunctionRole^>^ functionRoles,
ICardExtensionContext^ context = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract CheckAccessAsync :
card : Card *
task : CardTask *
taskType : CardType *
dbScope : IDbScope *
session : ISession *
validationResult : IValidationResultBuilder *
serviceType : CardServiceType *
functionRoles : List<CardMetadataFunctionRole> *
?context : ICardExtensionContext *
?cancellationToken : CancellationToken
(* Defaults:
let _context = defaultArg context null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
- card Card
- Карточка.
- task CardTask
- Карточка задания.
- taskType CardType
- Тип карточки задания.
- dbScope IDbScope
- DbScope базы данных.
- session ISession
- Текущая сессия.
- validationResult IValidationResultBuilder
- Результат валидации, куда будет записываться информация об ошибках.
- serviceType CardServiceType
- Параметр типа CardServiceType для определения, откуда пришел вызов проверки.
- functionRoles ListCardMetadataFunctionRole
- Функциональные роли из CardMetadata.
- context ICardExtensionContext (Optional)
- Контекст расширений.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskBooleanВозвращает true, если проверка прошла успешно.