KrAutoApprovePluginHelperCompleteApproveTasksAsync - метод |
Завершаем задания согласования
Пространство имён:
Tessa.Extensions.Default.Chronos.Workflow
Сборка:
Tessa.Extensions.Default.Chronos (в Tessa.Extensions.Default.Chronos.dll) Версия: 3.5.0.19
Синтаксис 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
- Тип: System.Collections.GenericListKrAutoApproveTaskRecord
Список заданий для завершения - db
- Тип: Tessa.Platform.DataDbManager
DbManager - builderFactory
- Тип: Tessa.Platform.DataIQueryBuilderFactory
IQueryBuilderFactory - cardRepository
- Тип: Tessa.CardsICardRepository
ICardRepository - cardMetadata
- Тип: Tessa.CardsICardMetadata
ICardMetadata - session
- Тип: Tessa.Platform.RuntimeISession
ISession - cardGetStrategy
- Тип: Tessa.Cards.ComponentModelICardGetStrategy
ICardGetStrategy - permissionsProvider
- Тип: Tessa.CardsICardServerPermissionsProvider
ICardServerPermissionsProvider - transactionStrategy
- Тип: Tessa.Cards.ComponentModelICardTransactionStrategy
- logger
- Тип: ILogger
Логгер - checkStopFunc
- Тип: SystemFuncBoolean
Функция проверки, что пора прекратить выполнение - cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Объект, посредством которого можно отменить асинхронную задачу.
Возвращаемое значение
Тип:
TaskАсинхронная задача.
См. также