RecoveryStrategyBase.ExecuteAsync Method (Func<Task>, 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.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntaxpublic Task ExecuteAsync(
Func<Task> toExecute,
CancellationToken cancellationToken
)
Public Function ExecuteAsync (
toExecute As Func(Of Task),
cancellationToken As CancellationToken
) As Task
Parameters
- toExecute
- Type: System.Func<Task>
the func to execute. - cancellationToken
- Type: System.Threading.CancellationToken
The cancellation token.
Return Value
Type:
Task
See Also