RecoveryStrategyBaseExecuteAsyncTResult Method (FuncTaskTResult, CancellationToken) |
Executes the specified toExecute func asynchronously. If it fails with a transient exception it will be retried till either the maximum number of retries
has been attempted or the maximum delay has been reached.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public Task<TResult> ExecuteAsync<TResult>(
Func<Task<TResult>> toExecute,
CancellationToken cancellationToken
)
Public Function ExecuteAsync(Of TResult) (
toExecute As Func(Of Task(Of TResult)),
cancellationToken As CancellationToken
) As Task(Of TResult)
Parameters
- toExecute
- Type: SystemFuncTaskTResult
The func to execute. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Type Parameters
- TResult
- The type of the result.
Return Value
Type:
TaskTResult
the result of the execution of toExecute
See Also