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