ValidationHelperExecuteWithCatchExceptionAsync(FuncCancellationToken, Task, CancellationToken) - метод
Пространство имён: Tessa.ApplicationsСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
[NotNullAttribute]
public static Task<ValidationResult> ExecuteWithCatchExceptionAsync(
[NotNullAttribute] Func<CancellationToken, Task> actionAsync,
CancellationToken cancellationToken = default
)
<NotNullAttribute>
Public Shared Function ExecuteWithCatchExceptionAsync (
<NotNullAttribute> actionAsync As Func(Of CancellationToken, Task),
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ValidationResult)
public:
[NotNullAttribute]
static Task<ValidationResult^>^ ExecuteWithCatchExceptionAsync(
[NotNullAttribute] Func<CancellationToken, Task^>^ actionAsync,
CancellationToken cancellationToken = CancellationToken()
)
[<NotNullAttribute>]
static member ExecuteWithCatchExceptionAsync :
[<NotNullAttribute>] actionAsync : Func<CancellationToken, Task> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValidationResult>
- actionAsync FuncCancellationToken, Task
-
Выполняемое действие
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskValidationResult
Результат выполнения