public Task<ICardTemporaryRoleList?> TryGetTemporaryRolesAsync(
IEnumerable<CardTask> tasks,
Card card,
bool overrideRoleTypeIDs,
DateTime storeDateTime,
DbManager db,
IQueryExecutor executor,
IQueryBuilderFactory builderFactory,
IValidationResultBuilder validationResult,
CancellationToken cancellationToken = default
)
Public Function TryGetTemporaryRolesAsync (
tasks As IEnumerable(Of CardTask),
card As Card,
overrideRoleTypeIDs As Boolean,
storeDateTime As DateTime,
db As DbManager,
executor As IQueryExecutor,
builderFactory As IQueryBuilderFactory,
validationResult As IValidationResultBuilder,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ICardTemporaryRoleList)
public:
virtual Task<ICardTemporaryRoleList^>^ TryGetTemporaryRolesAsync(
IEnumerable<CardTask^>^ tasks,
Card^ card,
bool overrideRoleTypeIDs,
DateTime storeDateTime,
DbManager^ db,
IQueryExecutor^ executor,
IQueryBuilderFactory^ builderFactory,
IValidationResultBuilder^ validationResult,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryGetTemporaryRolesAsync :
tasks : IEnumerable<CardTask> *
card : Card *
overrideRoleTypeIDs : bool *
storeDateTime : DateTime *
db : DbManager *
executor : IQueryExecutor *
builderFactory : IQueryBuilderFactory *
validationResult : IValidationResultBuilder *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ICardTemporaryRoleList>
override TryGetTemporaryRolesAsync :
tasks : IEnumerable<CardTask> *
card : Card *
overrideRoleTypeIDs : bool *
storeDateTime : DateTime *
db : DbManager *
executor : IQueryExecutor *
builderFactory : IQueryBuilderFactory *
validationResult : IValidationResultBuilder *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ICardTemporaryRoleList>
Признак того, что для всех заданий карточки в списке TaskAssignedRoles требуется выполнить запрос, определяющий идентификатор типа роли.
Рекомендуется устанавливать значение true всегда, кроме случаев, когда карточка сохраняется особым образом, причём некоторые роли могут быть не созданы на момент вызова метода, но создаются позже в расширении на транзакцию.