KrAutoApprovePluginHelperCompleteApproveTasksAsync - метод
Завершаем задания согласования
Пространство имён: Tessa.Extensions.Default.Chronos.WorkflowСборка: Tessa.Extensions.Default.Chronos (в Tessa.Extensions.Default.Chronos.dll) Версия: 3.6.0.22
public static Task CompleteApproveTasksAsync(
List<KrAutoApproveTaskRecord> tasksToApprove,
DbManager db,
IQueryBuilderFactory builderFactory,
ICardRepository cardRepository,
ICardMetadata cardMetadata,
ISession session,
ICardGetStrategy cardGetStrategy,
ICardServerPermissionsProvider permissionsProvider,
ICardTransactionStrategy transactionStrategy,
ILogger logger,
Func<bool> checkStopFunc,
CancellationToken cancellationToken = default
)
Public Shared Function CompleteApproveTasksAsync (
tasksToApprove As List(Of KrAutoApproveTaskRecord),
db As DbManager,
builderFactory As IQueryBuilderFactory,
cardRepository As ICardRepository,
cardMetadata As ICardMetadata,
session As ISession,
cardGetStrategy As ICardGetStrategy,
permissionsProvider As ICardServerPermissionsProvider,
transactionStrategy As ICardTransactionStrategy,
logger As ILogger,
checkStopFunc As Func(Of Boolean),
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
static Task^ CompleteApproveTasksAsync(
List<KrAutoApproveTaskRecord^>^ tasksToApprove,
DbManager^ db,
IQueryBuilderFactory^ builderFactory,
ICardRepository^ cardRepository,
ICardMetadata^ cardMetadata,
ISession^ session,
ICardGetStrategy^ cardGetStrategy,
ICardServerPermissionsProvider^ permissionsProvider,
ICardTransactionStrategy^ transactionStrategy,
ILogger^ logger,
Func<bool>^ checkStopFunc,
CancellationToken cancellationToken = CancellationToken()
)
static member CompleteApproveTasksAsync :
tasksToApprove : List<KrAutoApproveTaskRecord> *
db : DbManager *
builderFactory : IQueryBuilderFactory *
cardRepository : ICardRepository *
cardMetadata : ICardMetadata *
session : ISession *
cardGetStrategy : ICardGetStrategy *
permissionsProvider : ICardServerPermissionsProvider *
transactionStrategy : ICardTransactionStrategy *
logger : ILogger *
checkStopFunc : Func<bool> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- tasksToApprove ListKrAutoApproveTaskRecord
- Список заданий для завершения
- db DbManager
- DbManager
- builderFactory IQueryBuilderFactory
- IQueryBuilderFactory
- cardRepository ICardRepository
- ICardRepository
- cardMetadata ICardMetadata
- ICardMetadata
- session ISession
- ISession
- cardGetStrategy ICardGetStrategy
- ICardGetStrategy
- permissionsProvider ICardServerPermissionsProvider
- ICardServerPermissionsProvider
- transactionStrategy ICardTransactionStrategy
- logger ILogger
- Логгер
- checkStopFunc FuncBoolean
- Функция проверки, что пора прекратить выполнение
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskАсинхронная задача.