RetryPolicy.ExecuteAsync Method (Func(Of Task))

 

Repetitively executes the specified asynchronous task while it satisfies the current retry policy.

Namespace:   Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Public Function ExecuteAsync (
	taskAction As Func(Of Task)
) As Task

Parameters

taskAction
Type: System.Func(Of Task)

A function that returns a started task (also known as "hot" task).

Return Value

Type: System.Threading.Tasks.Task

A task that will run to completion if the original task completes successfully (either the first time or after retrying transient failures). If the task fails with a non-transient error or the retry limit is reached, the returned task will transition to a faulted state and the exception must be observed.

Return to top
Show: